/* ============================================================
   NEXT AUTOMATE — BRAND THEME TOKENS  (from the NXT logo)
   navy #111F46  ·  gold #D49D34
   ============================================================ */
:root {
  --na-navy:       #111F46;  /* logo navy                        */
  --na-navy-deep:  #0B1533;  /* navy, one step darker            */
  --na-gold:       #D49D34;  /* logo gold — primary accent       */
  --na-gold-hi:    #E9BE63;  /* hover / secondary accent         */
  --na-gold-soft:  #F2DCAE;  /* small-caps + pale accent text    */
  --na-bg:         #070C1C;  /* page base                        */
  --na-surface:    #0C1430;  /* cards + panels                   */
  --na-surface-2:  #101A3B;  /* raised panels                    */
  --na-line:       rgba(212, 157, 52, .16); /* warm hairline     */
  --na-line-soft:  rgba(255, 255, 255, .07);
  --na-text:       #FFFFFF;
  --na-muted:      #9AA6C4;  /* body copy on navy                */
  --na-muted-2:    #6E7B9E;  /* captions                         */
  --na-dim:        #55618A;  /* de-emphasised headline half      */
}

/* ============================================================
   FONTS
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@400;500;600;700&display=swap");

/* ============================================================
   ROOT
   ============================================================ */
html {
  scroll-behavior: smooth;
  font-size: 18px;
}

:root {
  --cursor-size: 20px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #070C1C;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0C1430;
}
::-webkit-scrollbar-thumb {
  background: #1B2547;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2A376A;
}

::selection {
  background: rgba(212, 157, 52, 0.3);
  color: white;
}

/* ============================================================
   FONT UTILITIES
   ============================================================ */
.font-google-sans-flex {
  font-family: "Google Sans Flex", sans-serif !important;
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  height: 40px;
  width: 60px;
}
.logo1 {
  height: 85px;
  width: 70px;
}

/* ============================================================
   GLASS / NOISE
   ============================================================ */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 157, 52, 0.18);
}

.noise-bg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scan {
  0% { top: -10%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

@keyframes cs-ring-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(3) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-ticker {
  animation: ticker 40s linear infinite;
}
.animate-scan {
  animation: scan 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.animate-fade-in {
  animation: fadeIn 13s ease-out;
}
.animate-scale-in {
  animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-ring {
  animation: cs-ring-pulse 2s ease-out infinite;
}
.cs-ring-2 {
  animation-delay: 0.6s;
}
.cs-ring-3 {
  animation-delay: 1.2s;
}

/* ============================================================
   PERSPECTIVE / 3D CARDS
   ============================================================ */
.perspective-container {
  perspective: 1000px;
}
.rotate-card {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.group:hover .rotate-card {
  transform: rotateY(-10deg) rotateX(5deg);
}

/* ============================================================
   BORDER GRADIENT HELPER
   ============================================================ */
[style*="--border-gradient"]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius-before, inherit);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}

/* ============================================================
   CMS LOADING (kept for parity)
   ============================================================ */
@keyframes cms-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.cms-loading {
  position: relative;
  color: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  background: linear-gradient(
    90deg,
    rgba(128, 128, 128, 0.1) 25%,
    rgba(128, 128, 128, 0.2) 50%,
    rgba(128, 128, 128, 0.1) 75%
  ) !important;
  background-size: 200% 100% !important;
  animation: cms-shimmer 1.5s infinite !important;
  border-radius: 12px;
  min-height: 1em;
  min-width: 3em;
  overflow: hidden;
}
.cms-loading * { visibility: hidden !important; }
.cms-loading img { opacity: 0 !important; }

.invisible { visibility: hidden !important; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
#whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  z-index: 9999;
}
#whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   NEX CAROUSEL — scoped with .nex- prefix
   ============================================================================ */

/* Coverflow mechanics */
.nex-cf-wrap { position: relative; width: 100%; overflow: hidden; }
.nex-cf-viewport {
  perspective: 2400px;
  height: 620px;
  position: relative;
  z-index: 5;
}
.nex-cf-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.nex-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 680px;
  height: 540px;
  margin-left: -340px;
  margin-top: -270px;
  background: #070C1C;
  border: 1px solid rgba(212, 157, 52, 0.18);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.75s,
    border-color 0.4s, box-shadow 0.4s;
  will-change: transform, opacity;
}
.nex-card.is-center {
  border-color: rgba(212, 157, 52, 0.5);
  box-shadow: 0 30px 70px rgba(212, 157, 52, 0.3),
    0 0 40px rgba(212, 157, 52, 0.15);
}
.nex-card:hover { border-color: rgba(212, 157, 52, 0.55); }
.nex-card-scale {
  width: 680px;
  height: 540px;
  transform: scale(1);
  transform-origin: 0 0;
  pointer-events: none;
}
.nex-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 30px 26px;
  background: linear-gradient(
    to top,
    rgba(7, 12, 28, 0.98) 0%,
    rgba(7, 12, 28, 0.92) 40%,
    rgba(7, 12, 28, 0) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.nex-card-cat {
  font-size: 11px;
  color: #F2DCAE;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}
.nex-card-name {
  font-size: 30px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: "Inter", sans-serif;
}

#nex-cf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  position: relative;
  z-index: 10;
}
#nex-cf-dots .nex-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.35s;
  border: none;
  padding: 0;
}
#nex-cf-dots .nex-dot.is-active {
  background: #D49D34;
  width: 26px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(212, 157, 52, 0.5);
}

.nex-cf-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 10px;
  color: #55618A;
  font-family: ui-monospace, "Courier New", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
  .nex-cf-viewport { perspective: 2000px; height: 540px; }
  .nex-card { width: 580px; height: 460px; margin-left: -290px; margin-top: -230px; }
  .nex-card-scale { transform: scale(0.85); }
  .nex-card-name { font-size: 26px; }
  .nex-card-cat { font-size: 10px; }
}
@media (max-width: 880px) {
  .nex-cf-viewport { perspective: 1600px; height: 460px; }
  .nex-card { width: 480px; height: 390px; margin-left: -240px; margin-top: -195px; }
  .nex-card-scale { transform: scale(0.7); }
  .nex-card-name { font-size: 22px; }
  .nex-card-cat { font-size: 9px; }
}
@media (max-width: 680px) {
  .nex-cf-viewport { perspective: 1300px; height: 400px; }
  .nex-card { width: 380px; height: 330px; margin-left: -190px; margin-top: -165px; }
  .nex-card-scale { transform: scale(0.56); }
  .nex-card-name { font-size: 20px; }
  .nex-card-cat { font-size: 9px; letter-spacing: 0.18em; }
  .nex-card-overlay { padding: 18px 22px 20px; }
}
@media (max-width: 480px) {
  .nex-cf-viewport { perspective: 1100px; height: 350px; }
  .nex-card { width: 310px; height: 280px; margin-left: -155px; margin-top: -140px; border-radius: 14px; }
  .nex-card-scale { transform: scale(0.46); }
  .nex-card-name { font-size: 18px; }
  .nex-card-cat { font-size: 8.5px; }
  .nex-card-overlay { padding: 14px 18px 16px; }
}

/* ============================================================
   NEX DASHBOARD INTERNALS (shown inside cards)
   ============================================================ */
.nex-dash {
  width: 680px;
  height: 540px;
  background: #0C1430;
  display: grid;
  grid-template-columns: 118px 1fr;
  color: white;
  font-family: "Inter", -apple-system, sans-serif;
  box-sizing: border-box;
}
.nex-dash *, .nex-dash *::before, .nex-dash *::after { box-sizing: border-box; }
.nex-dash-sidebar {
  background: #05091A;
  border-right: 1px solid rgba(212, 157, 52, 0.13);
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nex-dash-logo { display: flex; align-items: center; gap: 7px; padding: 2px 4px; }
.nex-dash-logomark {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(135deg, #D49D34, #E9BE63);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212, 157, 52, 0.4);
}
.nex-dash-logotext { font-size: 11px; color: white; font-weight: 600; letter-spacing: -0.01em; }
.nex-sec-label {
  font-size: 7.5px; color: #8E9BB8; letter-spacing: 0.2em;
  padding: 0 8px; margin-bottom: 3px; margin-top: 3px; font-weight: 500;
}
.nex-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 8px; border-radius: 5px;
  font-size: 9.5px; color: #C3CCE2; cursor: default; transition: all 0.2s;
}
.nex-nav-item.nex-nav-active {
  background: linear-gradient(90deg, rgba(212, 157, 52, 0.3), rgba(233, 190, 99, 0.15));
  color: white;
  border: 1px solid rgba(212, 157, 52, 0.45);
  padding: 3px 7px; font-weight: 500;
  box-shadow: 0 0 12px rgba(212, 157, 52, 0.3);
}
.nex-nav-expand {
  display: flex; align-items: center; justify-content: space-between;
  gap: 7px; padding: 4px 8px; border-radius: 5px;
  font-size: 9.5px; color: white; font-weight: 500;
}
.nex-nav-badge {
  font-size: 7.5px; padding: 1px 5px; border-radius: 999px;
  background: #e24b4a; color: white; font-weight: 600;
}
.nex-dash-main { display: flex; flex-direction: column; min-width: 0; }
.nex-dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid rgba(212, 157, 52, 0.13);
  background: #070C1C; gap: 10px;
}
.nex-search {
  display: flex; align-items: center; gap: 7px;
  flex: 1; max-width: 180px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px; border-radius: 5px;
  border: 1px solid rgba(212, 157, 52, 0.13);
  font-size: 9px; color: #8E9BB8;
}
.nex-kbd {
  font-size: 7.5px; color: #C3CCE2;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px; border-radius: 2px; margin-left: auto;
}
.nex-topbar-right { display: flex; align-items: center; gap: 8px; }
.nex-location-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(212, 157, 52, 0.18);
  border: 1px solid rgba(212, 157, 52, 0.4);
  font-size: 9px; color: white; font-weight: 500;
}
.nex-location-pill .nex-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #F2DCAE; box-shadow: 0 0 6px #D49D34; display: inline-block;
}
.nex-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #D49D34, #E9BE63);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: white; flex-shrink: 0;
}
.nex-dash-content { padding: 14px 18px 16px; flex: 1; }

.nex-page-title { font-size: 18px; font-weight: 500; margin: 0 0 3px; letter-spacing: -0.02em; color: white; }
.nex-page-sub { font-size: 10px; color: #DDE3F0; margin: 0 0 12px; }
.nex-brand-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(212, 157, 52, 0.18); border: 1px solid rgba(212, 157, 52, 0.4);
  margin-bottom: 8px; font-size: 9px; color: white; letter-spacing: 0.2em; font-weight: 600;
}
.nex-greeting { font-size: 22px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.02em; color: white; }
.nex-greeting-sub { font-size: 11px; color: #DDE3F0; margin: 0 0 14px; }
.nex-gradient-text {
  background: linear-gradient(90deg, #E9BE63, #F2DCAE);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nex-tabs-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.nex-tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.nex-tab {
  padding: 5px 10px; border-radius: 5px;
  font-size: 9px; font-weight: 500; color: #C3CCE2;
  cursor: default; border: 1px solid transparent;
  background: transparent; letter-spacing: 0.05em;
  font-family: inherit;
}
.nex-tab.nex-tab-active {
  background: rgba(212, 157, 52, 0.22); color: white;
  border-color: rgba(212, 157, 52, 0.4);
}
.nex-date-tabs {
  display: flex; gap: 1px; padding: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 157, 52, 0.18);
  border-radius: 5px;
}
.nex-date-btn {
  padding: 3px 7px; font-size: 8px; font-weight: 500;
  color: #C3CCE2; background: transparent;
  border: none; border-radius: 3px;
  font-family: inherit; cursor: default; letter-spacing: 0.05em;
}
.nex-date-btn.nex-date-active { background: rgba(212, 157, 52, 0.22); color: white; }
.nex-dropdown {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 157, 52, 0.30);
  border-radius: 6px; font-size: 9.5px; color: white;
  font-weight: 500; font-family: inherit; cursor: default;
}
.nex-dropdown.nex-dropdown-accent {
  background: rgba(212, 157, 52, 0.22);
  border-color: rgba(212, 157, 52, 0.4);
  color: #F2DCAE;
}

.nex-metric-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 12px;
}
.nex-metric-card {
  background: #0C1430;
  border: 1px solid rgba(212, 157, 52, 0.13);
  border-radius: 8px; padding: 10px;
  position: relative; overflow: hidden;
}
.nex-metric-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.nex-metric-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; border: 1px solid;
}
.nex-metric-num { font-size: 20px; color: white; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.nex-metric-label { font-size: 9.5px; color: #C3CCE2; margin-top: 4px; font-weight: 500; }
.nex-metric-sub { font-size: 8px; color: #8E9BB8; margin-top: 2px; }

.nex-m-gold::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #D49D34, #E9BE63);
}
.nex-m-gold { background: linear-gradient(180deg, rgba(212, 157, 52, 0.08), rgba(0, 0, 0, 0) 60%), #0C1430; }

.nex-m-teal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #1d9e75, #5dcaa5);
}
.nex-m-teal { background: linear-gradient(180deg, rgba(29, 158, 117, 0.07), rgba(0, 0, 0, 0) 60%), #0C1430; }

.nex-m-rose::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #e24b4a, #f7c1c1);
}
.nex-m-rose { background: linear-gradient(180deg, rgba(226, 75, 74, 0.07), rgba(0, 0, 0, 0) 60%), #0C1430; }

.nex-m-blue::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #378add, #85b7eb);
}
.nex-m-blue { background: linear-gradient(180deg, rgba(55, 138, 221, 0.07), rgba(0, 0, 0, 0) 60%), #0C1430; }

.nex-dash-lower { display: grid; grid-template-columns: 1.75fr 1fr; gap: 10px; }
.nex-panel {
  background: #0C1430;
  border: 1px solid rgba(212, 157, 52, 0.13);
  border-radius: 8px; padding: 12px;
}
.nex-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nex-panel-title { font-size: 11px; font-weight: 500; color: white; margin: 0; }
.nex-panel-sub { font-size: 8.5px; color: #8E9BB8; margin: 2px 0 0; }

.nex-bars { display: flex; flex-direction: column; gap: 6px; }
.nex-bar-row { display: grid; grid-template-columns: 60px 1fr 20px; align-items: center; gap: 6px; }
.nex-bar-label { font-size: 8.5px; color: #8E9BB8; }
.nex-bar-track {
  height: 5px; background: rgba(255, 255, 255, 0.04);
  border-radius: 3px; overflow: hidden;
}
.nex-bar-fill { height: 100%; border-radius: 3px; }
.nex-bar-val { font-size: 9px; color: white; font-weight: 500; text-align: right; }

.nex-lead-list { display: flex; flex-direction: column; gap: 7px; }
.nex-lead-row { display: flex; align-items: center; gap: 7px; }
.nex-mini-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 500; flex-shrink: 0;
}
.nex-lead-info { flex: 1; min-width: 0; }
.nex-lead-name {
  font-size: 9px; color: white; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nex-lead-src { font-size: 7.5px; color: #8E9BB8; }

.nex-badge {
  font-size: 7px; padding: 2px 5px; border-radius: 3px;
  font-weight: 500; letter-spacing: 0.03em;
}
.nex-badge-gray { color: #8E9BB8; background: rgba(255, 255, 255, 0.04); }
.nex-badge-gold {
  color: #F2DCAE; background: rgba(212, 157, 52, 0.18);
  border: 1px solid rgba(212, 157, 52, 0.3);
}
.nex-chip {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px; border-radius: 3px;
  font-size: 7.5px; font-weight: 500;
}
.nex-chip-green { color: #97c459; background: rgba(99, 153, 34, 0.18); }

.nex-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(29, 158, 117, 0.1);
  border: 1px solid rgba(29, 158, 117, 0.3);
  font-size: 8.5px; color: #5dcaa5; font-weight: 500;
}
.nex-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #5dcaa5; box-shadow: 0 0 6px #5dcaa5; display: inline-block;
}

.nex-kv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid rgba(212, 157, 52, 0.11);
}
.nex-kv-label { font-size: 9px; color: white; font-weight: 500; }
.nex-kv-sub { font-size: 7.5px; color: #8E9BB8; }
.nex-kv-val { font-size: 11px; color: white; font-weight: 500; }
.nex-mini-icon {
  width: 20px; height: 20px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}

.nex-grid-head {
  font-size: 8px; color: #8E9BB8; font-weight: 500;
  letter-spacing: 0.05em; padding: 6px 5px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(212, 157, 52, 0.09);
}
.nex-grid-cell {
  font-size: 8px; padding: 5px 5px;
  border-bottom: 1px solid rgba(212, 157, 52, 0.09);
  color: #DDE3F0; font-variant-numeric: tabular-nums;
}
.nex-label-cell {
  color: #C3CCE2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.nex-right { text-align: right; }
.nex-grid-section {
  grid-column: 1 / -1; padding: 6px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 8.5px; color: white; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.nex-grid-sub {
  grid-column: 1 / -1; padding: 4px 6px 3px 18px;
  font-size: 7.5px; color: #F2DCAE;
  font-style: italic; font-weight: 500;
}
.nex-total-cell {
  color: white; font-weight: 500;
  border-top: 1px solid rgba(212, 157, 52, 0.18);
}
.nex-highlight-cell {
  background: rgba(212, 157, 52, 0.14);
  font-weight: 500;
  border-top: 1px solid rgba(212, 157, 52, 0.35);
  border-bottom: 1px solid rgba(212, 157, 52, 0.35);
  padding: 6px 5px; color: #F2DCAE;
}
/* ============================================================
   BRAND EXTRAS
   ============================================================ */

/* second line of the hero headline — solid gold gradient */
.na-h1-accent {
  background-image: linear-gradient(to bottom, var(--na-gold), #8A6524);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* gold focus ring for inputs / buttons */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--na-gold);
  outline-offset: 2px;
}

/* text selection */
::selection { background: rgba(212, 157, 52, .32); color: #fff; }


/* ============================================================================
   NO-REBUILD FALLBACK LAYER
   ----------------------------------------------------------------------------
   Every colour utility used by index.html is re-declared here so the new theme
   renders correctly even if tailwind.css has not been rebuilt yet.
   Loaded after tailwind.css, so these win. Re-running `npm run build` produces
   identical values — this block is a safety net, not a replacement.
   ============================================================================ */
.bg-\[\#070C1C\] { background-color: #070C1C; }
.bg-\[\#070C1C\]\/60 { background-color: rgba(7, 12, 28, 0.6); }
.bg-\[\#070C1C\]\/70 { background-color: rgba(7, 12, 28, 0.7); }
.bg-\[\#0C1430\] { background-color: #0C1430; }
.bg-\[\#111F46\] { background-color: #111F46; }
.bg-\[\#111F46\]\/60 { background-color: rgba(17, 31, 70, 0.6); }
.bg-\[\#D49D34\] { background-color: #D49D34; }
.bg-\[\#D49D34\]\/10 { background-color: rgba(212, 157, 52, 0.1); }
.bg-\[radial-gradient\(circle_at_50\%_50\%\,rgba\(212\,157\,52\,0\.08\)\,transparent_70\%\)\] { background-image: radial-gradient(circle at 50% 50%,rgba(212,157,52,0.08),transparent 70%); }
.bg-\[radial-gradient\(circle_at_50\%_50\%\,rgba\(212\,157\,52\,0\.15\)\,transparent_60\%\)\] { background-image: radial-gradient(circle at 50% 50%,rgba(212,157,52,0.15),transparent 60%); }
.border-\[\#D49D34\] { border-color: #D49D34; }
.border-\[\#D49D34\]\/10 { border-color: rgba(212, 157, 52, 0.1); }
.border-\[\#D49D34\]\/20 { border-color: rgba(212, 157, 52, 0.2); }
.border-\[\#D49D34\]\/30 { border-color: rgba(212, 157, 52, 0.3); }
.focus\:border-\[\#D49D34\]:focus { border-color: #D49D34; }
.from-\[\#070C1C\] { --tw-gradient-from: #070C1C; --tw-gradient-to: rgba(7, 12, 28, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#0C1430\] { --tw-gradient-from: #0C1430; --tw-gradient-to: rgba(12, 20, 48, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#D49D34\] { --tw-gradient-from: #D49D34; --tw-gradient-to: rgba(212, 157, 52, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#FFFDF7\] { --tw-gradient-from: #FFFDF7; --tw-gradient-to: rgba(255, 253, 247, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.group:hover .group-hover\:bg-\[\#D49D34\]\/20 { background-color: rgba(212, 157, 52, 0.2); }
.group:hover .group-hover\:text-\[\#D49D34\] { color: #D49D34; }
.group:hover .group-hover\:text-\[\#E9BE63\] { color: #E9BE63; }
.hover\:bg-\[\#E9BE63\]:hover { background-color: #E9BE63; }
.hover\:border-\[\#D49D34\]\/20:hover { border-color: rgba(212, 157, 52, 0.2); }
.hover\:border-\[\#D49D34\]\/30:hover { border-color: rgba(212, 157, 52, 0.3); }
.hover\:border-\[\#D49D34\]\/40:hover { border-color: rgba(212, 157, 52, 0.4); }
.hover\:text-\[\#E9BE63\]:hover { color: #E9BE63; }
.text-\[\#111F46\] { color: #111F46; }
.text-\[\#3C4770\] { color: #3C4770; }
.text-\[\#4E5B7E\] { color: #4E5B7E; }
.text-\[\#55618A\] { color: #55618A; }
.text-\[\#9AA6C4\] { color: #9AA6C4; }
.text-\[\#C3CCE2\] { color: #C3CCE2; }
.text-\[\#D49D34\] { color: #D49D34; }
.text-\[\#E9BE63\] { color: #E9BE63; }
.to-\[\#070C1C\] { --tw-gradient-to: #070C1C; }
.to-\[\#B98E3C\] { --tw-gradient-to: #B98E3C; }
.to-\[\#E9BE63\] { --tw-gradient-to: #E9BE63; }
.to-\[\#F1DFBA\] { --tw-gradient-to: #F1DFBA; }
.via-\[\#D49D34\] { --tw-gradient-to: rgba(212, 157, 52, 0); --tw-gradient-stops: var(--tw-gradient-from), #D49D34, var(--tw-gradient-to); }
.via-\[\#D49D34\]\/40 { --tw-gradient-to: rgba(212, 157, 52, 0); --tw-gradient-stops: var(--tw-gradient-from), rgba(212, 157, 52, 0.4), var(--tw-gradient-to); }
.via-\[\#F6EBD4\] { --tw-gradient-to: rgba(246, 235, 212, 0); --tw-gradient-stops: var(--tw-gradient-from), #F6EBD4, var(--tw-gradient-to); }
.via-\[\#FBF3E1\] { --tw-gradient-to: rgba(251, 243, 225, 0); --tw-gradient-stops: var(--tw-gradient-from), #FBF3E1, var(--tw-gradient-to); }
.selection\:bg-\[\#D49D34\]\/30 ::selection { background-color: rgba(212, 157, 52, .3); }
.selection\:bg-\[\#D49D34\]\/30::selection { background-color: rgba(212, 157, 52, .3); }
.shadow-\[0_0_25px_rgba\(212\,157\,52\,\.4\)\] { box-shadow: 0 0 25px rgba(212, 157, 52, .4); }
.hover\:shadow-\[0_0_30px_rgba\(212\,157\,52\,0\.4\)\]:hover { box-shadow: 0 0 30px rgba(212, 157, 52, .4); }


/* ============================================================================
   LEGACY PURPLE NEUTRALISER
   ----------------------------------------------------------------------------
   tailwind.css is a BUILD ARTIFACT — never hand-edit it, `npm run build` will
   overwrite your changes. Every purple utility Tailwind still generates (from
   casestudies.html and any other page not yet re-themed) is remapped here to
   the navy/gold palette instead. style.css loads after tailwind.css, so these
   win, and they survive every future rebuild.

   When the other pages are re-themed, this block can simply be deleted.
   ============================================================================ */
.bg-\[\#7000f2\] { background-color: #D49D34; }
.bg-\[\#7000f2\]\/5 { background-color: rgba(212, 157, 52, 0.05); }
.bg-\[\#7000f2\]\/10 { background-color: rgba(212, 157, 52, 0.1); }
.bg-\[\#7000f2\]\/15 { background-color: rgba(212, 157, 52, 0.15); }
.bg-\[\#7000f2\]\/20 { background-color: rgba(212, 157, 52, 0.2); }
.bg-\[\#7000f2\]\/25 { background-color: rgba(212, 157, 52, 0.25); }
.bg-\[\#7000f2\]\/30 { background-color: rgba(212, 157, 52, 0.3); }
.bg-\[\#7000f2\]\/35 { background-color: rgba(212, 157, 52, 0.35); }
.bg-\[\#7000f2\]\/40 { background-color: rgba(212, 157, 52, 0.4); }
.bg-\[\#7000f2\]\/45 { background-color: rgba(212, 157, 52, 0.45); }
.bg-\[\#7000f2\]\/50 { background-color: rgba(212, 157, 52, 0.5); }
.bg-\[\#7000f2\]\/55 { background-color: rgba(212, 157, 52, 0.55); }
.bg-\[\#7000f2\]\/65 { background-color: rgba(212, 157, 52, 0.65); }
.bg-\[\#7000f2\]\/70 { background-color: rgba(212, 157, 52, 0.7); }
.bg-\[\#7000f2\]\/85 { background-color: rgba(212, 157, 52, 0.85); }
.border-\[\#7000f2\] { border-color: #D49D34; }
.border-\[\#7000f2\]\/15 { border-color: rgba(212, 157, 52, 0.15); }
.border-\[\#7000f2\]\/20 { border-color: rgba(212, 157, 52, 0.2); }
.border-\[\#7000f2\]\/25 { border-color: rgba(212, 157, 52, 0.25); }
.border-\[\#7000f2\]\/30 { border-color: rgba(212, 157, 52, 0.3); }
.border-\[\#7000f2\]\/40 { border-color: rgba(212, 157, 52, 0.4); }
.border-\[\#7000f2\]\/50 { border-color: rgba(212, 157, 52, 0.5); }
.bg-\[\#9d4eff\] { background-color: #E9BE63; }
.bg-\[\#9d4eff\]\/10 { background-color: rgba(233, 190, 99, 0.1); }
.bg-\[\#9d4eff\]\/30 { background-color: rgba(233, 190, 99, 0.3); }
.text-\[\#7000f2\] { color: #D49D34; }
.text-\[\#9d4eff\] { color: #E9BE63; }
.text-\[\#c4a5ff\] { color: #F2DCAE; }
.bg-\[\#020202\] { background-color: #05091A; }
.bg-\[\#050505\] { background-color: #070C1C; }
.bg-\[\#09090d\]\/90 { background-color: rgba(8, 14, 34, .9); }
.bg-\[\#0A0A0A\] { background-color: #0C1430; }
.bg-\[\#0c0c0e\] { background-color: #0C1430; }
.hover\:bg-\[\#0A0A0A\]:hover { background-color: #0C1430; }
.hover\:bg-\[\#0c0c0e\]:hover { background-color: #101A3B; }
.from-\[\#050505\] { --tw-gradient-from: #070C1C var(--tw-gradient-from-position); --tw-gradient-to: rgba(7, 12, 28, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#0A0612\] { --tw-gradient-from: #070C1C var(--tw-gradient-from-position); --tw-gradient-to: rgba(7, 12, 28, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#0a0a0a\] { --tw-gradient-from: #0C1430 var(--tw-gradient-from-position); --tw-gradient-to: rgba(12, 20, 48, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#7000f2\] { --tw-gradient-from: #D49D34 var(--tw-gradient-from-position); --tw-gradient-to: rgba(212, 157, 52, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#7000f2\]\/15 { --tw-gradient-from: rgba(212, 157, 52, .15) var(--tw-gradient-from-position); --tw-gradient-to: rgba(212, 157, 52, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#7000f2\]\/20 { --tw-gradient-from: rgba(212, 157, 52, .2) var(--tw-gradient-from-position); --tw-gradient-to: rgba(212, 157, 52, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-\[\#7000f2\]\/25 { --tw-gradient-from: rgba(212, 157, 52, .25) var(--tw-gradient-from-position); --tw-gradient-to: rgba(212, 157, 52, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-\[\#0c0a14\] { --tw-gradient-to: rgba(12, 20, 48, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #0C1430 var(--tw-gradient-via-position), var(--tw-gradient-to); }
.via-\[\#7000f2\] { --tw-gradient-to: rgba(212, 157, 52, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #D49D34 var(--tw-gradient-via-position), var(--tw-gradient-to); }
.via-\[\#7000f2\]\/40 { --tw-gradient-to: rgba(212, 157, 52, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(212, 157, 52, .4) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.via-\[\#d946ef\]\/15 { --tw-gradient-to: rgba(233, 190, 99, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgba(233, 190, 99, .15) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.via-\[\#faf6ff\] { --tw-gradient-to: rgba(251, 243, 225, 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #FBF3E1 var(--tw-gradient-via-position), var(--tw-gradient-to); }
.to-\[\#050505\] { --tw-gradient-to: #070C1C var(--tw-gradient-to-position); }
.to-\[\#0A0A0A\] { --tw-gradient-to: #0C1430 var(--tw-gradient-to-position); }
.to-\[\#2a005b\]\/25 { --tw-gradient-to: rgba(17, 31, 70, .45) var(--tw-gradient-to-position); }
.to-\[\#9d4eff\] { --tw-gradient-to: #E9BE63 var(--tw-gradient-to-position); }
.to-\[\#ede4ff\] { --tw-gradient-to: #F1DFBA var(--tw-gradient-to-position); }
.bg-\[radial-gradient\(circle_at_50\%_50\%\,rgba\(112\,0\,242\,0\.08\)\,transparent_70\%\)\] { background-image: radial-gradient(circle at 50% 50%, rgba(212, 157, 52, 0.08), transparent 70%); }
.bg-\[radial-gradient\(circle_at_50\%_50\%\,rgba\(112\,0\,242\,0\.15\)\,transparent_60\%\)\] { background-image: radial-gradient(circle at 50% 50%, rgba(212, 157, 52, 0.15), transparent 60%); }
.shadow-\[0_0_15px_rgba\(112\,0\,242\,\.5\)\] { --tw-shadow: 0 0 15px rgba(212, 157, 52, .5); --tw-shadow-colored: 0 0 15px rgba(212, 157, 52, .5); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-\[0_0_25px_rgba\(112\,0\,242\,\.4\)\] { --tw-shadow: 0 0 25px rgba(212, 157, 52, .4); --tw-shadow-colored: 0 0 25px rgba(212, 157, 52, .4); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-\[0_0_8px_rgba\(112\,0\,242\,\.4\)\] { --tw-shadow: 0 0 8px rgba(212, 157, 52, .4); --tw-shadow-colored: 0 0 8px rgba(212, 157, 52, .4); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-\[0_0_8px_rgba\(157\,78\,255\,\.4\)\] { --tw-shadow: 0 0 8px rgba(233, 190, 99, .4); --tw-shadow-colored: 0 0 8px rgba(233, 190, 99, .4); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-\[0_0_8px_rgba\(157\,78\,255\,\.6\)\] { --tw-shadow: 0 0 8px rgba(233, 190, 99, .6); --tw-shadow-colored: 0 0 8px rgba(233, 190, 99, .6); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.shadow-\[0_10px_40px_-10px_rgba\(112\,0\,242\,\.3\)\] { --tw-shadow: 0 10px 40px -10px rgba(212, 157, 52, .3); --tw-shadow-colored: 0 10px 40px -10px rgba(212, 157, 52, .3); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.hover\:shadow-\[0_0_30px_rgba\(112\,0\,242\,0\.4\)\]:hover { --tw-shadow: 0 0 30px rgba(212, 157, 52, .4); --tw-shadow-colored: 0 0 30px rgba(212, 157, 52, .4); box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.hover\:border-\[\#7000f2\]\/30:hover { border-color: rgba(212, 157, 52, .3); }
.hover\:border-\[\#7000f2\]\/40:hover { border-color: rgba(212, 157, 52, .4); }
.hover\:text-\[\#7000f2\]:hover { color: #D49D34; }
.hover\:text-\[\#9d4eff\]:hover { color: #E9BE63; }
.focus\:border-\[\#7000f2\]:focus { border-color: #D49D34; }
.group:hover .group-hover\:bg-\[\#7000f2\]\/10 { background-color: rgba(212, 157, 52, .1); }
.group:hover .group-hover\:bg-\[\#7000f2\]\/20 { background-color: rgba(212, 157, 52, .2); }
.group:hover .group-hover\:text-\[\#7000f2\] { color: #D49D34; }
.group:hover .group-hover\:text-\[\#9d4eff\] { color: #E9BE63; }
.group:hover .group-hover\:text-\[\#e5d5ff\] { color: #F7E9CC; }
.selection\:bg-\[\#7000f2\]\/30 ::selection { background-color: rgba(212, 157, 52, .3); }
.selection\:bg-\[\#7000f2\]\/30::selection { background-color: rgba(212, 157, 52, .3); }
.selection\:bg-\[\#7000f2\]\/30 ::-moz-selection { background-color: rgba(212, 157, 52, .3); }
.selection\:bg-\[\#7000f2\]\/30::-moz-selection { background-color: rgba(212, 157, 52, .3); }