/* ===========================
   HERO SECTION (NX HERO)
   =========================== */

:root {
  /* You can move these to your global variables if you want */
  --nx-hero-bg-dark: #050509;
  --nx-hero-bg-darker: #020206;
  --nx-hero-text-primary: #ffffff;
  --nx-hero-text-muted: #b1b1c3;
  --nx-hero-grad-main: linear-gradient(120deg,
      #14d4e3 0%,
      #4280f9 49%,
      #ce7cf8 100%);
}

.nx-hero {
  position: relative;
  min-height: 100vh;
  /* padding-top: 96px; */
  display: flex;
  align-items: center;
  /* padding-bottom: 72px; */
  overflow: hidden;
  background: radial-gradient(circle at top left, #161623 0, #020206 55%);
  color: var(--nx-hero-text-primary);
  margin-top: 20px;
}

/* Canvas behind content */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Gradient glows */

.nx-hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
}

.nx-hero-glow-1 {
  background-image: var(--nx-hero-grad-main);
  top: -160px;
  right: -120px;
}

.nx-hero-glow-2 {
  background: radial-gradient(circle, #14d4e3 0, transparent 60%);
  bottom: -120px;
  left: -80px;
}

.nx-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

/* Left text side */

.nx-hero-left h1 {
  font-size: 2.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}

.nx-hero-subtitle {
  margin: 0 0 28px;
  color: var(--nx-hero-text-muted);
  /* max-width: 540px; */
}

.nx-hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #8a9bff;
  margin-bottom: 24px;
}

.nx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.nx-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.nx-hero-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nx-hero-metric-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.nx-hero-metric-label {
  font-size: 0.8rem;
  color: var(--nx-hero-text-muted);
}

/* Buttons specific to hero */

.nx-btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.18s ease,
    color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.nx-btn-primary {
  color: #ffffff;
  background-image: var(--nx-hero-grad-main);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(66, 128, 249, 0.65);
}

.nx-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(206, 124, 248, 0.75);
}

.nx-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Right visual card */

.nx-hero-right {
  display: flex;
  justify-content: flex-end;
}

.nx-hero-card-body {
  padding: 18px 18px 16px;
}

.nx-hero-card-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.nx-hero-chart::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.6));
  mix-blend-mode: multiply;
}

.nx-hero-stat-label {
  font-size: 0.75rem;
  color: var(--nx-hero-text-muted);
}

.nx-hero-stat-value {
  font-size: 1rem;
  font-weight: 500;
}

.nx-hero-card-caption {
  font-size: 0.75rem;
  color: var(--nx-hero-text-muted);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) and (min-width: 768px) {

  .nx-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 100px;
    padding-inline: 50px;
  }

  .nx-hero-right {
    justify-content: flex-start;
  }

  .nx-hero-kicker {
    font-size: 1.0rem;
  }

  .nx-hero-subtitle {
    font-size: 1.4rem;
  }

  nx-hero-metric-value {
    font-size: 1.3rem;
  }

  .nx-hero-metric-label {
    font-size: 1.0rem;
  }

}

@media (max-width: 767px) {

  .nx-hero {
    padding-top: 86px;
  }

  .nx-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-inline: 30px;
  }

  .nx-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .nx-hero-metrics {
    gap: 18px;
  }

  .nx-hero-left h1 {
    font-size: 2.2rem;
  }

}

@media (min-width: 900px) and (max-width: 1024px) {
  .nx-hero-left h1 {
    font-size: 4.0rem;
  }

  .nx-hero-kicker {
    font-size: 1.5rem;
  }

  .nx-hero-subtitle {
    font-size: 1.6rem;
  }

  nx-hero-metric-value {
    font-size: 1.35rem;
  }

  .nx-hero-metric-label {
    font-size: 1.1rem;
  }


}

/* --------------------------
   PREMIUM DASHBOARD CARD
--------------------------- */

.nx-dashboard-card {
  width: 450px;
  min-height: 220px;
  background:
    radial-gradient(120% 120% at 0% 0%,
      rgba(60, 70, 140, 0.35) 0%,
      rgba(20, 22, 45, 0.85) 45%,
      #0a0b14 80%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  padding: 14px 18px 12px;
  gap: 12px;
  margin-bottom: 30px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.75),
    inset 0 0 0 rgba(255, 255, 255, 0.02);
}




.nx-dashboard-panel {
  position: relative;
  height: 210px;
  border-radius: 22px;
  overflow: hidden;
  /* CRITICAL — removes inner box */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  /* CRITICAL — remove inner spacing */
}


/* base visual + bot visual share same styling */
.nx-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.nx-visual.is-active {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------
   ROTATING VISUAL OVERLAY INSIDE PANEL
-------------------------------------------- */
.nx-dashboard-overlay {
  position: absolute;
  inset: 0;
  /* FULL PANEL COVERAGE (no inner box) */
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

/* base and bot visuals use same base styling */
.nx-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nx-visual.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ------------------------------------------------
   BOT SKELETON VISUAL (chat loading)
------------------------------------------------- */

.nx-bot-row-user {
  align-self: flex-start;
}

.nx-bot-row-bot {
  align-self: flex-end;
  width: 60%;
}

.nx-bot-row.short {
  width: 40%;
}

/* ------------------------------------------------
   ROTATING LABEL INSIDE ANIMATION PANEL
------------------------------------------------- */
/* Rotating label – now at TOP CENTER */
.nx-panel-label {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;

  font-size: 0.60rem;
  font-weight: 450;
  letter-spacing: 0.25rem;
  text-transform: uppercase;

  margin-bottom: 10px;
  /* spacing between label and panel */
  color: rgba(241, 233, 233, 0.9);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 20;
}

.nx-panel-label.is-active {
  opacity: 1;
}


/* ------------------------------------------------
   SCOREBOARD AT BOTTOM OF CARD
------------------------------------------------- */
.nx-dashboard-mini-score {
  margin-top: 0px;
  /* spacing above scoreboard */
  margin-bottom: 0px;
  /* spacing below scoreboard */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.nx-mini-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nx-mini-value {
  font-weight: 450;
  display: none;
}

.nx-mini-label {
  opacity: 0.85;
  font-size: 0.58rem;
  display: none;
}

.nx-mini-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  margin: 4px auto 0;
  display: none;
}


/* subtle grid overlay */
.nx-dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px),
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* Energetic gradient glow */
.nx-dashboard-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(20, 212, 227, 0.25),
      rgba(66, 128, 249, 0.25),
      rgba(206, 124, 248, 0.32));
  opacity: 0.85;
  filter: blur(10px);
}

@keyframes dashboardLineMove {
  0% {
    transform: translateY(-6px);
    opacity: 0.4;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }

  100% {
    transform: translateY(-6px);
    opacity: 0.4;
  }
}

.nx-stat-block {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.nx-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.nx-stat-label {
  font-size: 0.75rem;
  color: #b8b8cf;
}

.nx-dashboard-caption {
  font-size: 0.75rem;
  color: #9ea0b8;
  margin-top: 2px;
}

.nx-visual-bot {
  background: rgba(0, 0, 0, 0.15);
  /* subtle cover */
  backdrop-filter: blur(2px);
  z-index: 5 !important;
}

/* rows of chat skeleton */
.nx-bot-row {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0.12));
  opacity: 0.9;
  width: 70%;
  animation: nx-skeleton-shimmer 1.4s ease-in-out infinite;
}

.nx-bot-row-user {
  align-self: flex-start;
}

.nx-bot-row-bot {
  align-self: flex-end;
  width: 60%;
}

.nx-bot-row.short {
  width: 40%;
}

/* shimmer animation */
@keyframes nx-skeleton-shimmer {
  0% {
    filter: brightness(0.9);
  }

  50% {
    filter: brightness(1.3);
  }

  100% {
    filter: brightness(0.9);
  }
}

/* small dot under each value */
.nx-mini-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 4px auto 0;
  background: rgba(255, 255, 255, 0.9);
}

/* ==========================================================
   PERFORMANCE GRAPH VISUAL — SCALABILITY PERFORMANCE
   ========================================================== */
.nx-visual-performance {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 14px;
  /* space for label */
}

.nx-visual-performance.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================
   Hero – Scalability Performance Chart (FINAL)
   ========================================================== */
/* Position visual inside card */
.nx-visual-performance {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 14px;
  /* space under label */
}

/* Chart container */
.nx-perf-chart {
  width: 100%;
  height: 100%;
}

.nx-perf-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Axes */
.nx-hero-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.7;
}

/* Base growth curve line (no animation here) */
.nx-hero-growth-line {
  stroke: url(#nx-hero-line-gradient);
  stroke-width: 0.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Animated state for line */
.nx-hero-growth-line.animate {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: nxHeroLineDraw 2s ease forwards;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.25));
}

/* Tiny glowing nodes (base) */
.nx-hero-node {
  fill: #ffffff;
  opacity: 0.6;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
}

/* Animated state for nodes */
.nx-hero-node.animate {
  animation: nxHeroNodeGlow 1.6s ease-in-out infinite alternate;
}

@keyframes nxHeroLineDraw {
  from {
    stroke-dashoffset: 220;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nxHeroNodeGlow {
  from {
    r: 0.55;
    opacity: 0.45;
  }

  to {
    r: 0.75;
    opacity: 0.85;
  }
}

/* Global visual padding for all hero visuals */
.nx-visual-pad {
  width: 100%;
  height: 100%;
  padding: 14px 18px 14px 18px;
  /* top, right, bottom, left */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   WHATSAPP SKELETON OVERVIEW
   ========================================= */

/* LEFT SIDE — MOBILE SKELETON BOX */
.nx-whats-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding-top: 24px;
  padding-bottom: 32px;

  gap: 16px;
}

.nx-whats-mobile-box {
  width: 100%;
  height: 80%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.nx-chat-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: translateX(-100%);
  animation: nx-whats-shimmer 2.4s infinite;
}

.nx-chat-line.long {
  width: 85%;
}

.nx-chat-line.medium {
  width: 65%;
}

.nx-chat-line.short {
  width: 45%;
}

/* =========================================
   ICON TOKENS (Reusable)
   ========================================= */
:root {
  --nx-skeleton-primary: rgba(255, 255, 255, 0.35);
  --nx-skeleton-secondary: rgba(255, 255, 255, 0.22);
  --nx-icon-size-md: 28px;

}

/* =========================================
   WhatsApp Icon (Sharp SVG, Reusable)
   ========================================= */

.nx-whats-header-icon {
  width: var(--nx-icon-size-md);
  height: var(--nx-icon-size-md);

  color: var(--nx-skeleton-primary);
  fill: currentColor;

  opacity: 1;
  stroke: none;
  filter: none;

  display: block;
  flex-shrink: 0;
  transform: translateY(2px);
  align-items: flex-start;


}




/* RIGHT SIDE — PIE + FEATURES */
.nx-whats-right {
  display: flex;
  flex-direction: column;
  /* 👈 THIS is the key */
  align-items: stretch;
  gap: 0.8rem;
}


/* Pie skeleton */
.nx-whats-pie {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  margin-left: 0.2rem;
}

.nx-whats-pie .slice {
  position: absolute;
  inset: 0;
  border: 6px solid transparent;
  border-top-color: rgba(120, 201, 255, 0.8);
  border-right-color: rgba(171, 140, 255, 0.7);
  border-radius: 50%;
}

.nx-whats-pie .s2 {
  transform: rotate(90deg);
  opacity: 0.5;
}

.nx-whats-pie .s3 {
  transform: rotate(160deg);
  opacity: 0.3;
}

/* Feature list skeleton */
.nx-whats-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feat-line {
  height: 0.38rem;
  width: 90%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.feat-line.short {
  width: 60%;
}

.feat-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: translateX(-100%);
  animation: nx-whats-shimmer 2.6s infinite;
}

/* =========================================
   WHATSAPP SKELETON FINAL VERSION
   ========================================= */

.nx-whats-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

/* Chat line skeletons */
.nx-chat-line {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.nx-chat-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-100%);
  animation: nx-whats-shimmer 2.4s infinite;
}

.nx-chat-line.right {
  align-self: flex-end;
}

.nx-chat-line.left {
  align-self: flex-start;
}

.nx-chat-line.long {
  width: 78%;
}

.nx-chat-line.medium {
  width: 55%;
}

.nx-chat-line.short {
  width: 40%;
}

/* RIGHT SIDE — typing indicator */
.nx-typing-skeleton {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.nx-typing-skeleton span {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: nx-dot-bounce 1.2s infinite ease-in-out;
}

.nx-typing-skeleton span:nth-child(2) {
  animation-delay: 0.15s;
}

.nx-typing-skeleton span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes nx-dot-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* PIE CHART */
.nx-whats-pie {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  margin-bottom: 0.9rem;
}

.nx-whats-pie .slice {
  position: absolute;
  inset: 0;
  border: 6px solid transparent;
  border-top-color: #5ed8ff;
  border-right-color: #b07aff;
  border-radius: 50%;
}

.nx-whats-pie .s2 {
  transform: rotate(90deg);
  opacity: 0.5;
}

.nx-whats-pie .s3 {
  transform: rotate(160deg);
  opacity: 0.3;
}

/* Feature list */
.nx-whats-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feat-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.feat-row .dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.feat-line {
  height: 0.38rem;
  flex: 1;
  /* 👈 THIS guarantees visibility */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}

.feat-line.short {
  flex: 0.6;
}


.feat-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: nx-whats-shimmer 2.6s infinite;
}

/* Shared shimmer */
@keyframes nx-whats-shimmer {
  0% {
    transform: translateX(-100%);
  }

  60% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(120%);
  }
}

/* =========================================
   ERP VISUAL (modules + table + sync)
   ========================================= */

/* stagger dot pulse */
.nx-erp-dot:nth-child(1) {
  animation-delay: 0s;
}

.nx-erp-dot:nth-child(3) {
  animation-delay: 0.15s;
}

.nx-erp-dot:nth-child(5) {
  animation-delay: 0.30s;
}

.nx-erp-dot:nth-child(7) {
  animation-delay: 0.45s;
}

@keyframes nx-erp-pulse {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

/* simple width helpers (percent) */

.w-65 {
  width: 65%;
}

.w-55 {
  width: 55%;
}

.w-50 {
  width: 50%;
}

.w-45 {
  width: 45%;
}

.w-40 {
  width: 40%;
}

.w-35 {
  width: 35%;
}

.w-30 {
  width: 30%;
}

.nx-erp-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}


/* ================= ERP VISUAL ================= */

/* Sidebar */
.nx-erp-sidebar {
  width: 46px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 6px 0;
}

/* top menu dots */
.nx-erp-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* controls spacing between rows */
}

/* one row = 2 dots */
.nx-erp-sidebar-row {
  display: flex;
  gap: 6px;
}

/* bottom user circle */
.nx-erp-user {
  margin-top: auto;
  align-self: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  opacity: 0.6;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.45),
      rgba(255, 255, 255, 0.25));
  animation: nx-skeleton 2.6s infinite;
}

.nx-erp-menu-item {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  /* 👈 THIS is the key */

}

.nx-erp-menu-item .dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
  max-width: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  flex: 0 0 6px;
}

.nx-erp-menu-item .line {
  width: 14px;
  height: 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}

/* Main Area */
.nx-erp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  /* align-self: self-start; */
}

/* Top cards */
.nx-erp-top {
  display: flex;
  gap: 12px;
}

.nx-erp-card {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

/* ERP layout wrapper */
.nx-erp-layout {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  height: 100%;
}


/* ERP Table */
.nx-erp-table {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nx-erp-row {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1fr;
  padding: 6px 0;
  /* column feel */
  gap: 10px;
}

/* ERP table cells */
.nx-erp-row .cell {
  height: 12px;
  border-radius: 6px;
  /* NOT pill – table feel */
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
}

/* subtle shimmer (ERP style) */
.nx-erp-row .cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent);
  transform: translateX(-100%);
  animation: nx-erp-table-shimmer 2.8s infinite;
}

/* Flow */
.nx-erp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nx-erp-flow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.nx-erp-flow .conn {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

/* Width helpers */
.w-20 {
  width: 20%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-35 {
  width: 35%;
}

.w-40 {
  width: 40%;
}

.w-45 {
  width: 45%;
}

.w-50 {
  width: 50%;
}

.w-60 {
  width: 60%;
}

.w-70 {
  width: 70%;
}

/* Skeleton animation */
@keyframes nx-skeleton {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: 200px 0;
  }
}

/* ERP content must start from top, not center */
.nx-visual-erp .nx-visual-pad {
  align-items: stretch;
  justify-content: flex-start;
}

@keyframes nx-erp-table-shimmer {
  0% {
    transform: translateX(-100%);
  }

  60% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.nx-erp-table-surface {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

/* ERP rows sit ON the surface */
.nx-erp-table-surface .nx-erp-row {
  padding: 6px 0;
}

/* ERP table cells – clearly visible */
.nx-erp-table-surface .cell {
  height: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
}

/* ERP depth layer – subtle raised surface */
.nx-visual-erp .nx-erp-main {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px 14px 10px;
}

.nx-erp-menu-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================
   E-COMMERCE VISUAL 
   ========================== */

/* Override center alignment ONLY for ecom */
.nx-visual-ecom .nx-visual-pad {
  align-items: flex-start;
  justify-content: flex-start;
  padding-bottom: 20px;
}

/* Layout */
.nx-ecom-layout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  width: 100%;
  height: 100%;
}

/* Sidebar */
.nx-ecom-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 9px;
  height: 80%;
}

.nx-ecom-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-ecom-menu .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.nx-ecom-menu .line {
  width: 44px;
  height: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}


/* Main */
.nx-ecom-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 38px;
  padding-bottom: 16px;
  padding-top: 10px;
  height: 100%;
  padding-right: 24px;
  /* border-color: #020206; */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  /* align-self: self-start; */
}

/* Top bar */
.nx-ecom-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nx-ecom-search {
  width: 60%;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.30);
}

/* Cart icon — LINE ONLY */
.nx-ecom-cart {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.6;
  fill: none;
}

/* Product grid */
.nx-ecom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;

}

/* Product card */
.nx-ecom-card {
  height: 50px;
  width: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);

  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-bottom: 6px; */
  padding: 14px;
  gap: 14px;
}

/* T-shirt LINE ICON */
.nx-ecom-shirt {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.6;
  fill: none;
}

/* ==========================
   E-COMMERCE SEARCH BAR
   ========================== */

.nx-ecom-search {
  width: 66%;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);

  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

/* Search icon (line) */
.nx-ecom-search-icon {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1.6;
  fill: none;
}

/* Skeleton input line */
.nx-ecom-search-line {
  height: 4px;
  width: 65%;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.20),
      rgba(255, 255, 255, 0.40),
      rgba(255, 255, 255, 0.20));
  animation: nx-skeleton 2.2s infinite;
}

/* ==========================
   E-COMMERCE PRODUCT CARD
   ========================== */

/* Skeleton text lines under product */
.nx-ecom-prod-line {
  height: 4px;
  width: 32%;
  opacity: 0.6;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.20),
      rgba(255, 255, 255, 0.40),
      rgba(255, 255, 255, 0.20));
  animation: nx-skeleton 2.4s infinite;
  align-self: center;
  margin-top: 8px;
}

.nx-ecom-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  align-self: center;
}

.nx-ecom-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
}

/* E-commerce section divider row */
.nx-ecom-section-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

/* Skeleton lines */
.nx-ecom-section-line {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.20),
      rgba(255, 255, 255, 0.40),
      rgba(255, 255, 255, 0.20));
  animation: nx-skeleton 2.4s infinite;
}

/* Long line */
.nx-ecom-section-line-lg {
  width: 60%;
}

/* Short line */
.nx-ecom-section-line-sm {
  width: 18%;
}

/* Treat each product stack as a centered column */
.nx-ecom-grid>* {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) and (max-width: 1024px) {

  .nx-ecom-layout {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .nx-ecom-main {
    padding: 10px 20px 14px 24px;
  }

}

@media (max-width: 767px) {

  .nx-ecom-layout {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
  }

  .nx-ecom-sidebar {
    gap: 8px;
    /* padding-top: 4px; */
  }

  .nx-ecom-main {
    padding: 10px 12px;
    /* equal padding both sides */
  }

}