@charset "UTF-8";
/*
 * NexData Elementor Widgets - shared frontend primitives.
 * Component layout rules live in the assets/css/widgets directory.
 */
/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
.nexdata-widget {
  box-sizing: border-box;
  /* --- Brand palette ---------------------------------------------------- */
  --nex-navy-900: #05121F;
  --nex-navy-800: #081B2E;
  --nex-navy-700: #0C2540;
  --nex-navy-600: #14385C;
  --nex-navy: #0A1C30;
  --nex-navy-soft: #14314F;

  --nex-blue-700: #0B5FAE;
  --nex-blue-600: #0D6FCB;
  --nex-blue: #1180E4;
  --nex-blue-400: #4BA3F0;
  --nex-blue-200: #B9DBFA;

  --nex-cyan-600: #06A9C7;
  --nex-cyan: #16C8E8;
  --nex-cyan-300: #6FE4F6;

  --nex-white: #FFFFFF;
  --nex-surface: #FFFFFF;
  --nex-surface-2: #F4F8FD;   /* xanh rất nhạt — nền section xen kẽ */
  --nex-surface-3: #EAF2FB;
  --nex-line: #DFE9F5;
  --nex-line-soft: #EDF3FA;

  --nex-ink: #0B1B2B;         /* heading */
  --nex-ink-2: #33475C;       /* body */
  --nex-ink-3: #64798F;       /* muted */
  --nex-ink-inv: #FFFFFF;
  --nex-ink-inv-2: #B9CBDE;
  --nex-ink-inv-3: #7E97B2;

  --nex-ok: #10B981;
  --nex-warn: #F59E0B;

  /* --- Gradients (dùng tiết chế) ---------------------------------------- */
  --nex-grad-brand: linear-gradient(135deg, var(--nex-blue) 0%, var(--nex-cyan) 100%);
  --nex-grad-brand-soft: linear-gradient(135deg, rgba(17,128,228,.12) 0%, rgba(22,200,232,.12) 100%);
  --nex-grad-navy: linear-gradient(165deg, var(--nex-navy-800) 0%, var(--nex-navy-700) 55%, #0E2C4A 100%);
  --nex-grad-line: linear-gradient(90deg, transparent, var(--nex-blue), var(--nex-cyan), transparent);

  /* --- Typography scale (fluid, không gây layout shift) ----------------- */
  --nex-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
              Roboto, "Helvetica Neue", Arial, sans-serif;
  --nex-fs-display: clamp(2rem, 1.15rem + 3.1vw, 3.5rem);     /* H1  32 → 56 */
  --nex-fs-h2: clamp(1.5rem, 1.06rem + 1.6vw, 2.375rem);      /* H2  24 → 38 */
  --nex-fs-h3: clamp(1.0625rem, .96rem + .38vw, 1.25rem);     /* H3  17 → 20 */
  --nex-fs-h4: clamp(1rem, .95rem + .2vw, 1.0625rem);
  --nex-fs-lead: clamp(1rem, .94rem + .28vw, 1.125rem);       /* 16 → 18 */
  --nex-fs-body: 1rem;                                         /* 16 */
  --nex-fs-sm: .9375rem;                                       /* 15 */
  --nex-fs-xs: .8125rem;                                       /* 13 */
  --nex-fs-eyebrow: .8125rem;

  --nex-lh-tight: 1.14;
  --nex-lh-heading: 1.24;
  --nex-lh-body: 1.7;

  /* --- Spacing scale ---------------------------------------------------- */
  --nex-sp-1: 4px;
  --nex-sp-2: 8px;
  --nex-sp-3: 12px;
  --nex-sp-4: 16px;
  --nex-sp-5: 20px;
  --nex-sp-6: 24px;
  --nex-sp-7: 32px;
  --nex-sp-8: 40px;
  --nex-sp-9: 48px;
  --nex-sp-10: 56px;
  --nex-sp-11: 64px;
  --nex-sp-12: 80px;
  --nex-sp-13: 96px;
  --nex-sp-14: 120px;

  /* Khoảng cách section: 80–120px desktop, 56–72px mobile */
  --nex-section-y: clamp(3.5rem, 2rem + 6.2vw, 7.5rem);
  --nex-section-y-sm: clamp(3.5rem, 2.4rem + 4.4vw, 5.5rem);

  /* --- Layout ----------------------------------------------------------- */
  --nex-container: 1240px;
  --nex-container-narrow: 800px;
  --nex-gutter: clamp(1rem, .55rem + 1.9vw, 2rem);
  --nex-measure: 68ch;

  /* --- Radius ----------------------------------------------------------- */
  --nex-r-xs: 8px;
  --nex-r-sm: 12px;
  --nex-r-md: 16px;
  --nex-r-lg: 22px;
  --nex-r-xl: 28px;
  --nex-r-pill: 999px;

  /* --- Elevation (nhẹ, không đậm) --------------------------------------- */
  --nex-sh-xs: 0 1px 2px rgba(11, 27, 43, .05);
  --nex-sh-sm: 0 2px 8px rgba(11, 27, 43, .06);
  --nex-sh-md: 0 8px 24px rgba(11, 27, 43, .07);
  --nex-sh-lg: 0 18px 48px rgba(11, 27, 43, .10);
  --nex-sh-brand: 0 10px 30px rgba(17, 128, 228, .22);

  /* --- Motion ----------------------------------------------------------- */
  --nex-ease: cubic-bezier(.22, .61, .36, 1);
  --nex-dur: .28s;
  --nex-dur-slow: .55s;

  /* --- Misc ------------------------------------------------------------- */
  --nex-header-h: 74px;
  --nex-focus: 0 0 0 3px rgba(17, 128, 228, .45);
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
.nexdata-widget *,
.nexdata-widget *::before,
.nexdata-widget *::after { box-sizing: border-box; }

.nexdata-widget {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nex-header-h) + 16px);
}

.nexdata-widget {
  font-family: var(--nex-font);
  font-size: var(--nex-fs-body);
  line-height: var(--nex-lh-body);
  color: var(--nex-ink-2);
  background: var(--nex-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.nexdata-widget [hidden] { display: none !important; }

.nexdata-widget h1,
.nexdata-widget h2,
.nexdata-widget h3,
.nexdata-widget h4,
.nexdata-widget h5,
.nexdata-widget h6 { margin: 0; color: var(--nex-ink); line-height: var(--nex-lh-heading); font-weight: 800; }
.nexdata-widget p { margin: 0; }
.nexdata-widget ul,
.nexdata-widget ol { margin: 0; padding: 0; list-style: none; }
.nexdata-widget img,
.nexdata-widget picture,
.nexdata-widget svg,
.nexdata-widget video { display: block; max-width: 100%; }
.nexdata-widget img { height: auto; }
.nexdata-widget a { color: inherit; text-decoration: none; }
.nexdata-widget button { font: inherit; color: inherit; }
.nexdata-widget strong,
.nexdata-widget b { font-weight: 700; }

/* Ẩn nội dung nhưng vẫn đọc được bằng screen reader */
.nexdata-widget .nex-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Skip link — accessibility */
.nexdata-widget .nex-skip {
  position: absolute; left: 12px; top: -80px; z-index: 999;
  background: var(--nex-blue); color: #fff;
  padding: 12px 18px; border-radius: var(--nex-r-xs);
  font-weight: 700; font-size: var(--nex-fs-sm);
  transition: top var(--nex-dur) var(--nex-ease);
}
.nexdata-widget .nex-skip:focus { top: 12px; }

/* Focus state thống nhất cho mọi phần tử tương tác */
.nexdata-widget a:focus-visible,
.nexdata-widget button:focus-visible,
.nexdata-widget summary:focus-visible,
.nexdata-widget [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--nex-focus);
  border-radius: var(--nex-r-xs);
}

/* ==========================================================================
   03. LAYOUT PRIMITIVES
   ========================================================================== */
.nexdata-widget .nex-container {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: min(100%, var(--nex-container));
  margin-inline: auto;
  padding-inline: var(--nex-gutter);
}

.nexdata-widget.nex-section,
.nexdata-widget .nex-section { padding-block: var(--nex-section-y); position: relative; }
.nexdata-widget.nex-section--tight,
.nexdata-widget .nex-section--tight { padding-block: var(--nex-section-y-sm); }
.nexdata-widget.nex-section--flush-top,
.nexdata-widget .nex-section--flush-top { padding-top: 0; }

/* Nền xen kẽ: trắng / xanh rất nhạt / navy */
.nexdata-widget.nex-section--tint,
.nexdata-widget .nex-section--tint { background: var(--nex-surface-2); }
.nexdata-widget.nex-section--dark,
.nexdata-widget .nex-section--dark {
  background: var(--nex-grad-navy);
  color: var(--nex-ink-inv-2);
  position: relative;
  overflow: hidden;
}
.nexdata-widget.nex-section--dark h2,
.nexdata-widget.nex-section--dark h3,
.nexdata-widget.nex-section--dark h4,
.nexdata-widget .nex-section--dark h2,
.nexdata-widget .nex-section--dark h3,
.nexdata-widget .nex-section--dark h4 { color: var(--nex-ink-inv); }

/* Lưới nền công nghệ rất nhạt cho section navy — CSS thuần, không dùng ảnh */
.nexdata-widget.nex-section--dark::before,
.nexdata-widget .nex-section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}
.nexdata-widget.nex-section--dark > *,
.nexdata-widget .nex-section--dark > * { position: relative; z-index: 1; }

/* Đường phân cách gradient mảnh */
.nexdata-widget .nex-rule {
  height: 1px; border: 0; margin: 0;
  background: var(--nex-grad-line);
  opacity: .35;
}

/* Đầu section */
.nexdata-widget .nex-head { max-width: 720px; margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
.nexdata-widget .nex-head--center { margin-inline: auto; text-align: center; }
.nexdata-widget .nex-head__title { font-size: var(--nex-fs-h2); letter-spacing: -.015em; }
.nexdata-widget .nex-head__desc {
  margin-top: var(--nex-sp-4);
  font-size: var(--nex-fs-lead);
  color: var(--nex-ink-3);
  max-width: var(--nex-measure);
}
.nexdata-widget .nex-head--center .nex-head__desc { margin-inline: auto; }
.nexdata-widget.nex-section--dark .nex-head__desc,
.nexdata-widget .nex-section--dark .nex-head__desc { color: var(--nex-ink-inv-2); }

/* Eyebrow — nhãn nhỏ trên tiêu đề */
.nexdata-widget .nex-eyebrow {
  display: inline-flex; align-items: center; gap: var(--nex-sp-2);
  font-size: var(--nex-fs-eyebrow); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--nex-blue-600);
  margin-bottom: var(--nex-sp-3);
}
.nexdata-widget .nex-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--nex-grad-brand);
}
.nexdata-widget .nex-head--center .nex-eyebrow { justify-content: center; }
.nexdata-widget.nex-section--dark .nex-eyebrow,
.nexdata-widget .nex-section--dark .nex-eyebrow { color: var(--nex-cyan-300); }

/* Grid tiện dụng */
.nexdata-widget .nex-grid { display: grid; gap: var(--nex-sp-6); }
.nexdata-widget .nex-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nexdata-widget .nex-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nexdata-widget .nex-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   04. TYPOGRAPHY HELPERS
   ========================================================================== */
.nexdata-widget .nex-lead { font-size: var(--nex-fs-lead); color: var(--nex-ink-3); max-width: var(--nex-measure); }
.nexdata-widget .nex-text-grad {
  background: var(--nex-grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Đánh dấu chỗ cần điền dữ liệu thật — KHÔNG phải nội dung sản phẩm */
.nexdata-widget .nex-todo {
  color: var(--nex-ink-3);
  border-bottom: 1px dashed var(--nex-blue-200);
  font-style: italic;
}

/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.nexdata-widget .nex-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--nex-sp-2);
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--nex-r-sm);
  font-size: var(--nex-fs-sm); font-weight: 700; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform var(--nex-dur) var(--nex-ease),
              box-shadow var(--nex-dur) var(--nex-ease),
              background-color var(--nex-dur) var(--nex-ease),
              border-color var(--nex-dur) var(--nex-ease),
              color var(--nex-dur) var(--nex-ease);
  min-height: 48px;              /* vùng chạm đủ lớn trên mobile */
}
.nexdata-widget .nex-btn svg { width: 18px; height: 18px; flex: none; }

.nexdata-widget .nex-btn--primary {
  background: var(--nex-blue); color: #fff;
  box-shadow: var(--nex-sh-brand);
}
.nexdata-widget .nex-btn--primary:hover { background: var(--nex-blue-600); transform: translateY(-2px); }
.nexdata-widget .nex-btn--primary:active { transform: translateY(0); }

.nexdata-widget .nex-btn--outline {
  background: transparent; color: var(--nex-blue-700);
  border-color: var(--nex-line);
  background-color: #fff;
}
.nexdata-widget .nex-btn--outline:hover { border-color: var(--nex-blue); color: var(--nex-blue); transform: translateY(-2px); }

.nexdata-widget .nex-btn--ghost-light {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(2px);
}
.nexdata-widget .nex-btn--ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }

.nexdata-widget .nex-btn--white { background: #fff; color: var(--nex-blue-700); box-shadow: var(--nex-sh-md); }
.nexdata-widget .nex-btn--white:hover { transform: translateY(-2px); box-shadow: var(--nex-sh-lg); }

.nexdata-widget .nex-btn--sm { padding: 10px 18px; min-height: 40px; font-size: var(--nex-fs-xs); }
.nexdata-widget .nex-btn--block { display: flex; width: 100%; }

/* Link dạng mũi tên */
.nexdata-widget .nex-link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: var(--nex-fs-sm); color: var(--nex-blue-600);
}
.nexdata-widget .nex-link-arrow svg { width: 16px; height: 16px; transition: transform var(--nex-dur) var(--nex-ease); }
.nexdata-widget .nex-link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   06. ICONS & ICON TILES
   ========================================================================== */
.nexdata-widget .nex-icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.nexdata-widget .nex-icon--sm { width: 18px; height: 18px; }
.nexdata-widget .nex-icon--lg { width: 30px; height: 30px; }

/* Khung nền cho icon trong card — không để icon "trần" ở góc */
.nexdata-widget .nex-icon-tile {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: var(--nex-r-md);
  background: var(--nex-grad-brand-soft);
  border: 1px solid rgba(17, 128, 228, .16);
  color: var(--nex-blue);
  position: relative;
  transition: transform var(--nex-dur) var(--nex-ease),
              background-color var(--nex-dur) var(--nex-ease),
              color var(--nex-dur) var(--nex-ease);
}
.nexdata-widget .nex-icon-tile::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: var(--nex-r-sm);
  border: 1px dashed rgba(17, 128, 228, .18);
  pointer-events: none;
}
.nexdata-widget .nex-icon-tile--solid {
  background: var(--nex-grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--nex-sh-brand);
}
.nexdata-widget .nex-icon-tile--solid::after { border-color: rgba(255, 255, 255, .3); }
.nexdata-widget .nex-icon-tile--dark {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: var(--nex-cyan-300);
}
.nexdata-widget .nex-icon-tile--dark::after { border-color: rgba(255, 255, 255, .12); }
.nexdata-widget .nex-icon-tile--sm { width: 44px; height: 44px; border-radius: var(--nex-r-sm); }
.nexdata-widget .nex-icon-tile--sm::after { inset: 5px; border-radius: 9px; }

/* Compact live-status pill reused by hero and platform widgets. */
.nexdata-widget .nex-hero__panel-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--nex-r-pill);
  background: rgba(16, 185, 129, .1);
  color: var(--nex-ok);
  font-size: 11px;
  font-weight: 700;
}
.nexdata-widget .nex-hero__panel-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: nexdata-status-pulse 2.4s ease-in-out infinite;
}

@keyframes nexdata-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}


/* ==========================================================================
   22. ANIMATION UTILITIES
   ========================================================================== */
.nexdata-widget .nex-reveal {
  opacity: 1;
  transform: none;
}
.nexdata-js .nexdata-widget .nex-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s var(--nex-ease), transform .62s var(--nex-ease);
  will-change: opacity, transform;
}
.nexdata-js .nexdata-widget .nex-reveal.is-visible { opacity: 1; transform: none; }
/* Stagger cho các phần tử trong lưới */
.nexdata-widget .nex-reveal[data-nex-delay="1"] { transition-delay: .07s; }
.nexdata-widget .nex-reveal[data-nex-delay="2"] { transition-delay: .14s; }
.nexdata-widget .nex-reveal[data-nex-delay="3"] { transition-delay: .21s; }
.nexdata-widget .nex-reveal[data-nex-delay="4"] { transition-delay: .28s; }
.nexdata-widget .nex-reveal[data-nex-delay="5"] { transition-delay: .35s; }
.nexdata-widget .nex-reveal[data-nex-delay="6"] { transition-delay: .42s; }
.nexdata-widget .nex-reveal[data-nex-delay="7"] { transition-delay: .49s; }

/* Nếu JS chưa chạy / bị tắt — vẫn hiện nội dung */
.no-js .nexdata-widget .nex-reveal { opacity: 1; transform: none; }

@media (max-width: 375px) {
  .nexdata-widget { --nex-gutter: 1rem; }
}

/* ==========================================================================
   24. ACCESSIBILITY / REDUCED MOTION / PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .nexdata-widget { scroll-behavior: auto; }
  .nexdata-widget *,
.nexdata-widget *::before,
.nexdata-widget *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .nexdata-widget .nex-reveal { opacity: 1 !important; transform: none !important; }
  .nexdata-widget .nex-hero__panel,
.nexdata-widget .nex-hero__chip { animation: none !important; }
  .nexdata-widget .nex-meter__bar { transition: none !important; }
}

/* Tôn trọng chế độ tương phản cao */
@media (prefers-contrast: more){
  .nexdata-widget { --nex-ink-3: #4A5F75; --nex-ink-inv-3: #A9C0D6; --nex-line: #C6D6E7; }
}

@media print{
  .nexdata-widget.nex-header,
.nexdata-widget .nex-header,
.nexdata-widget .nex-totop,
.nexdata-widget .nex-mobile-panel,
.nexdata-widget.nex-cta,
.nexdata-widget .nex-cta,
.nexdata-widget .nex-footer__social { display: none !important; }
  .nexdata-widget { color: #000; background: #fff; }
  .nexdata-widget.nex-section--dark,
.nexdata-widget .nex-section--dark,
.nexdata-widget.nex-hero,
.nexdata-widget .nex-hero { background: #fff !important; color: #000 !important; }
  .nexdata-widget .nex-hero__title,
.nexdata-widget.nex-section--dark h2,
.nexdata-widget.nex-section--dark h3,
.nexdata-widget .nex-section--dark h2,
.nexdata-widget .nex-section--dark h3 { color: #000 !important; }
  .nexdata-widget a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
