/* ==========================================================================
   NeXDM Design System — Premium Dark Technology + Minimalist SaaS
   ========================================================================== */
:root {
  --bg-primary: #080B12;
  --bg-secondary: #0D111B;
  --bg-card: #111827;
  --bg-elevated: #17212E;
  --accent-primary: #16E0A0;
  --accent-secondary: #42B8FF;
  --text-primary: #F5F7FA;
  --text-secondary: #A7B2C2;
  --text-muted: #758194;
  --border: #253143;
  --success: #16C784;
  --warning: #F5B942;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container-max: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(66, 184, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(22, 224, 160, 0.04), transparent);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
}
main { overflow-x: hidden; max-width: 100%; }

a { color: var(--accent-secondary); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-primary); }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; border-radius: 4px; }

.nx-container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.nx-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Brand Tricolor Wordmark */
.brand-tiny, .brand-text { font-weight: 800; display: inline-flex; align-items: baseline; white-space: nowrap; letter-spacing: -0.02em; }
.brand-tiny .ne, .brand-text .ne { color: #FFFFFF; }
.brand-tiny .x, .brand-text .x { color: #FF0000; }
.brand-tiny .dm, .brand-text .dm { color: #00FF00; }

/* Reading Progress Bar */
.nx-reading-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  z-index: 1100; transition: width 0.08s linear;
}

/* ==========================================================================
   Sticky Navigation Header
   ========================================================================== */
.nx-header {
  position: sticky; top: 0; z-index: 1000;
  height: 68px;
  background: rgba(8, 11, 18, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 49, 67, 0.75);
}

.nx-header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nx-logo {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--text-primary); font-size: 1.38rem; font-weight: 800; flex-shrink: 0;
}
.nx-logo img { width: 40px; height: 40px; display: block; }

.nx-nav {
  display: flex; align-items: center; gap: 26px;
}
.nx-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nx-nav a:hover, .nx-nav a[aria-current="page"] { color: var(--text-primary); }

.nx-header-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

/* Buttons */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  border: 1px solid transparent; transition: all 0.18s ease;
  text-decoration: none; white-space: nowrap;
}
.nx-btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #0078D4 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  line-height: 1.15;
  border: 1px solid rgba(66, 184, 255, 0.45);
  box-shadow: 0 2px 14px rgba(2, 132, 199, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: all 0.2s ease;
}
.nx-btn-primary:hover {
  background: linear-gradient(135deg, #0396E5 0%, #0284C7 100%);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(66, 184, 255, 0.55);
  border-color: rgba(66, 184, 255, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.nx-btn-primary .brand-tiny {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.nx-btn-primary span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.nx-header .nx-btn-primary {
  padding: 5px 12px;
  font-size: 0.82rem;
  line-height: 1.15;
  border-radius: 8px;
}
.nx-btn-secondary {
  background: var(--bg-card); color: var(--text-primary); border-color: var(--border);
}
.nx-btn-secondary:hover {
  background: var(--bg-elevated); border-color: #384963; color: var(--text-primary);
}
.nx-btn-lg { padding: 13px 24px; font-size: 0.96rem; border-radius: 10px; }

/* Mobile Menu Button & Drawer */
.nx-menu-btn {
  display: none; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 8px; padding: 7px 10px; cursor: pointer;
}
.nx-mobile-drawer {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px; z-index: 999; flex-direction: column; gap: 14px;
}
.nx-mobile-drawer.open { display: flex; }
.nx-mobile-drawer a {
  color: var(--text-secondary); font-size: 1rem; font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid rgba(37, 49, 67, 0.5);
}

/* Google Translate Dropdown Clean Styling (Hide "Powered by Google Translate") */
.goog-te-gadget { font-size: 0 !important; color: transparent !important; line-height: 0 !important; }
.goog-te-gadget > span, .goog-logo-link, .VIpgJd-ZVi9od-l4eHX-hSRGPd, .goog-te-gadget span { display: none !important; }
.goog-te-gadget > div { display: inline-block !important; }
#google_translate_element select.goog-te-combo {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
  margin: 0 !important;
  font-size: 0.82rem !important;
  font-family: var(--font-sans) !important;
  cursor: pointer;
}
.goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-yAWNEb-L7lbkb, div#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}
/* AdSense Accidental Clicks Protection: enforce 24px breathing room around auto-placed ads */
ins.adsbygoogle, .google-auto-placed {
  margin: 24px auto !important;
}
body { top: 0 !important; }

/* Buy Me a Coffee Dropdown */
.nx-donate-wrap { position: relative; display: inline-block; }
.nx-donate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFDD00; color: #090D16; font-weight: 700; font-size: 0.82rem; line-height: 1.15;
  padding: 6px 12px; border-radius: 8px; border: none; cursor: pointer;
  white-space: nowrap; transition: transform 0.18s ease, background 0.18s ease;
}
.nx-donate-btn:hover { background: #FFE642; transform: translateY(-1px); }
.nx-donate-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-secondary); border: 1px solid rgba(255, 221, 0, 0.35);
  border-radius: 14px; padding: 8px; width: 245px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.8); z-index: 2000;
}
.nx-donate-menu.show { display: block !important; }
.nx-donate-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; color: var(--text-primary); text-decoration: none;
  transition: background 0.18s ease;
}
.nx-donate-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }

/* ==========================================================================
   Sections, Typography & Cards
   ========================================================================== */
.nx-section { padding: 56px 0; }
.nx-hero-section-bottom { padding-bottom: 0 !important; }
.nx-section-alt { background: var(--bg-secondary); border-top: 1px solid rgba(37, 49, 67, 0.55); border-bottom: 1px solid rgba(37, 49, 67, 0.55); }

.nx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-primary);
  background: rgba(22, 224, 160, 0.08);
  border: 1px solid rgba(22, 224, 160, 0.22);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}

.nx-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text-primary); margin: 0 0 18px;
  text-wrap: balance;
}
.nx-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.025em;
  color: var(--text-primary); margin: 0 0 14px;
  text-wrap: balance;
}
.nx-lead {
  font-size: 1.08rem; color: var(--text-secondary);
  max-width: 660px; line-height: 1.7; margin: 0 auto 28px;
  text-wrap: balance;
}

/* Translated script typography (Devanagari/Hindi, etc. need taller line-height and zero negative tracking) */
html.translated-ltr .nx-h1, html.translated-rtl .nx-h1, html[lang="hi"] .nx-h1 {
  line-height: 1.38 !important;
  letter-spacing: 0 !important;
}
html.translated-ltr .nx-h2, html.translated-rtl .nx-h2, html[lang="hi"] .nx-h2 {
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}
html.translated-ltr body, html.translated-rtl body, html[lang="hi"] body {
  letter-spacing: 0 !important;
}

.nx-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.78) 0%, rgba(10, 15, 28, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: opacity 0.6s ease, filter 0.6s ease, border-color 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease, background 0.55s ease;
}
.nx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 50% 0%, rgba(45, 212, 191, 0.22), rgba(56, 189, 248, 0.08) 45%, transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.nx-spotlight-group .nx-card,
.nx-spotlight-group .article-box,
.nx-spotlight-group .faq-card {
  opacity: 0.38;
  transform: scale(0.985);
  transition: opacity 0.6s ease, border-color 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease, background 0.55s ease;
}
.nx-spotlight-group .nx-card:hover,
.nx-spotlight-group .nx-card.nx-card-highlight,
.nx-spotlight-group .article-box:hover,
.nx-spotlight-group .article-box.nx-card-highlight,
.nx-spotlight-group .faq-card:hover,
.nx-spotlight-group .faq-card.nx-card-highlight,
.nx-card:hover {
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(20, 34, 58, 0.95) 0%, rgba(12, 22, 40, 0.99) 100%);
  border-color: rgba(45, 212, 191, 0.65);
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 50px rgba(0, 0, 0, 0.58), 0 0 36px rgba(45, 212, 191, 0.2);
}
.nx-card:hover::before,
.nx-card.nx-card-highlight::before {
  opacity: 1;
}
.nx-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.95), rgba(45, 212, 191, 1), transparent);
  pointer-events: none;
  transition: left 0.8s ease;
}
.nx-card:hover::after,
.nx-card.nx-card-highlight::after {
  left: 125%;
}
.nx-card .nx-icon-box {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.nx-card:hover .nx-icon-box,
.nx-card.nx-card-highlight .nx-icon-box {
  transform: scale(1.1) translateY(-1px);
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.4);
}
.nx-card-wm {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 84px;
  height: 84px;
  color: rgba(148, 163, 184, 0.06);
  pointer-events: none;
  transition: color 0.45s ease, transform 0.45s ease;
}
.nx-card:hover .nx-card-wm,
.nx-card.nx-card-highlight .nx-card-wm {
  color: rgba(45, 212, 191, 0.2);
  transform: scale(1.08);
}
/* Scroll-reveal staggered animation */
.nx-card.nx-reveal-ready {
  opacity: 0;
  transform: translateY(18px);
}
.nx-card.nx-reveal-in {
  opacity: 1;
  transform: translateY(0);
}
.nx-spotlight-group .nx-card.nx-reveal-in {
  opacity: 0.38;
  transform: scale(0.985);
}
.nx-spotlight-group .nx-card.nx-reveal-in:hover,
.nx-spotlight-group .nx-card.nx-reveal-in.nx-card-highlight {
  opacity: 1;
  transform: translateY(-6px) scale(1.015);
}
@media (prefers-reduced-motion: reduce) {
  .nx-card, .nx-spotlight-group .nx-card, .nx-spotlight-group .article-box, .nx-spotlight-group .faq-card, .nx-card.nx-reveal-ready, .nx-card.nx-reveal-in, .nx-line-ready { opacity: 1; filter: none; transform: none; }
  .nx-card::after, .nx-card:hover, .nx-card.nx-card-highlight { transition: none; transform: none; }
}

/* Site-Wide One-by-One Line Reveal & Clean Code Wrap */
.nx-line-ready {
  opacity: 0;
  transform: translateY(12px);
}
.nx-line-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nx-window .code-box {
  white-space: normal;
  word-break: break-word;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.75;
}

/* Non-Card Text & Code Line-by-Line Fade-to-Highlight */
.nx-text-spotlight > li,
.nx-text-spotlight > div {
  opacity: 0.46;
  transition: opacity 0.45s ease, color 0.45s ease, text-shadow 0.45s ease, transform 0.35s ease, background 0.45s ease, padding-left 0.35s ease;
}
.nx-text-spotlight > li:hover,
.nx-text-spotlight > li.nx-line-highlight {
  opacity: 1 !important;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(45, 212, 191, 0.25);
  transform: translateX(4px);
}
.nx-text-spotlight.code-box > div:hover,
.nx-text-spotlight.code-box > div.nx-line-highlight {
  opacity: 1 !important;
  color: #5eead4 !important;
  background: rgba(45, 212, 191, 0.08);
  border-left: 2px solid #2dd4bf;
  padding-left: 8px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .nx-text-spotlight > li, .nx-text-spotlight > div { opacity: 1; transform: none; transition: none; }
}
.nx-pill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.nx-pill-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(45, 212, 191, 0.22);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Hero Rotating Gradient Headline */
.nx-hero-rotator {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  background: linear-gradient(90deg, #c7d2fe 0%, #818cf8 45%, #38bdf8 85%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
@media (max-width: 520px) {
  .nx-hero-rotator { font-size: clamp(1.22rem, 5.4vw, 1.85rem); }
  main > section:first-of-type .nx-btn { padding: 6px 12px !important; font-size: 0.82rem !important; min-height: 34px; white-space: nowrap; }
  main > section:first-of-type p[style*="var(--font-mono)"] { min-height: 22px; }
}
.nx-hero-rotator.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

/* Unified 5-Column Divided Stat Strip */
.nx-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 8px auto 10px;
  max-width: 960px;
  background: rgba(10, 15, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nx-stat-cell {
  padding: 6px 8px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.nx-stat-cell:last-child {
  border-right: none;
}
.nx-stat-num {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.nx-stat-num.accent {
  color: #2dd4bf;
}
.nx-stat-lbl {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 1px;
  line-height: 1.15;
}
@media (max-width: 780px) {
  .nx-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nx-stat-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nx-stat-cell:last-child {
    grid-column: span 2;
    border-bottom: none;
  }
}

.nx-icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(66, 184, 255, 0.1); border: 1px solid rgba(66, 184, 255, 0.22);
  color: var(--accent-secondary); margin-bottom: 14px;
}
.nx-icon-box.mint {
  background: rgba(22, 224, 160, 0.1); border-color: rgba(22, 224, 160, 0.22);
  color: var(--accent-primary);
}

.nx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nx-span-2 { grid-column: span 2; }
.nx-bento > * { min-width: 0; max-width: 100%; }

.nx-hero-frame { position: relative; max-width: 1020px; margin: 0 auto; margin-bottom: 0; }
.nx-hero-frame::before {
  content: ''; position: absolute; inset: -24px 6% auto; height: 220px;
  background: radial-gradient(ellipse at center, rgba(66, 184, 255, 0.18), rgba(22, 224, 160, 0.06) 55%, transparent 75%);
  filter: blur(28px); pointer-events: none; z-index: 0;
}
.nx-hero-frame > .nx-window { position: relative; z-index: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }

@media (max-width: 960px) {
  .nx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-span-2 { grid-column: span 2; }
}
.nx-desktop-br { display: inline; }
@media (max-width: 768px) { .nx-desktop-br { display: none; } }
@media (max-width: 640px) {
  .nx-bento { grid-template-columns: 1fr; }
  .nx-span-2 { grid-column: span 1; }
}

.nx-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nx-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nx-grid-2 > *, .nx-grid-3 > *, .nx-grid-4 > *, .nx-card, .nx-window { min-width: 0; max-width: 100%; }
[data-lightbox-src] img { pointer-events: none; }

/* Window Frame / Desktop Showcase */
.nx-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}
.nx-window-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted);
}
.nx-dots { display: flex; gap: 7px; }
.nx-dots span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.nx-dots span:first-child { background: #ef4444; }
.nx-dots span:nth-child(2) { background: #f59e0b; }
.nx-dots span:nth-child(3) { background: #16c784; }

/* Trust Strip */
.nx-trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 2px 0 6px;
}
.nx-trust-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
}
.nx-trust-pill:hover { border-color: var(--accent-secondary); color: var(--text-primary); }

/* Interactive Tables & Code Blocks */
.nx-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.comp-table, .nx-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.comp-table th, .nx-table th {
  background: var(--bg-elevated); color: var(--text-primary);
  font-weight: 700; text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.comp-table td, .nx-table td {
  padding: 13px 16px; color: var(--text-secondary); border-bottom: 1px solid rgba(37, 49, 67, 0.55);
}
.comp-table tr:last-child td, .nx-table tr:last-child td { border-bottom: none; }

code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: rgba(66, 184, 255, 0.08); color: var(--accent-secondary);
  padding: 2px 6px; border-radius: 5px;
}
.code-box, .code-block, pre.nx-code {
  font-family: var(--font-mono); font-size: 0.86rem;
  background: #06090F; color: var(--accent-primary);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; overflow-x: auto; line-height: 1.65; margin: 14px 0;
}

/* FAQ Accordion */
.nx-faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
}
.nx-faq-btn {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 18px 20px; color: var(--text-primary); font-size: 1rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
}
.nx-faq-btn:hover { background: rgba(255,255,255,0.02); }
.nx-faq-panel {
  padding: 0 20px 18px; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.7; display: none;
}
.nx-faq-item.open .nx-faq-panel { display: block; }
.nx-faq-item.open .nx-faq-icon { transform: rotate(45deg); color: var(--accent-primary); }
.nx-faq-icon { transition: transform 0.2s ease; font-size: 1.25rem; color: var(--text-muted); }

/* Article Layout Compatibility */
.article-box, .sec-card, .disclaimer-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; text-align: left;
}
.disclaimer-box {
  background: rgba(66, 184, 255, 0.05); border-color: rgba(66, 184, 255, 0.25);
}
.faq-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 14px;
}

/* Lightbox Modal */
.nx-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 6, 10, 0.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 24px;
}
.nx-modal.open { display: flex; }
.nx-modal img { max-width: 92vw; max-height: 85vh; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* Footer */
.nx-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  color: var(--text-secondary);
}
.nx-footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px;
}
.nx-footer h3 {
  color: var(--text-primary); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px;
}
.nx-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nx-footer ul a { color: var(--text-secondary); font-size: 0.9rem; }
.nx-footer ul a:hover { color: var(--accent-primary); }
.nx-footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.84rem; color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .nx-nav { display: none; }
  .nx-menu-btn { display: inline-flex; }
  .nx-grid-3, .nx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nx-desktop-br { display: inline; }
@media (max-width: 768px) { .nx-desktop-br { display: none; } }
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .nx-container { padding: 0 16px; }
  .nx-header { height: 58px; }
  .nx-header-inner { padding: 0 14px; gap: 8px; }
  .nx-logo { font-size: 1.05rem; gap: 8px; }
  .nx-logo img { width: 28px; height: 28px; }
  .nx-header-actions { gap: 8px; }
  #google_translate_element select.goog-te-combo {
    max-width: 112px !important; padding: 5px 7px !important; font-size: 0.76rem !important;
  }
  .nx-donate-btn { padding: 5px 8px !important; font-size: 0.74rem !important; }
  .nx-mobile-drawer { top: 58px; padding: 16px 18px 24px; }
  .nx-grid-2, .nx-grid-3, .nx-grid-4 { grid-template-columns: 1fr; }
  .nx-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; margin-bottom: 24px; }
  .nx-footer-grid > div:first-child { grid-column: 1 / -1; }
  .nx-footer h3 { margin-bottom: 8px; font-size: 0.74rem; }
  .nx-footer ul { gap: 6px; }
  .nx-footer ul a { font-size: 0.78rem; line-height: 1.3; }
  .nx-header-actions .nx-btn-hide-mobile { display: none; }
  .nx-section { padding: 34px 0; }
  .nx-hero-section-bottom { padding-bottom: 0 !important; }
  .nx-eyebrow {
    font-size: 0.68rem !important; padding: 4px 10px !important;
    line-height: 1.35; white-space: normal; text-align: center;
  }
  .nx-h1 { font-size: 1.68rem !important; line-height: 1.24 !important; margin-bottom: 10px !important; }
  .nx-h2 { font-size: 1.38rem !important; line-height: 1.26 !important; }
  .nx-lead { font-size: 0.92rem !important; line-height: 1.55 !important; margin-bottom: 18px !important; }
  .nx-trust-strip {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; padding: 6px 0 10px;
  }
  .nx-trust-pill {
    justify-content: center; font-size: 0.7rem; padding: 6px 8px;
    white-space: normal; text-align: center; line-height: 1.25;
  }
  .nx-card { padding: 18px 16px; border-radius: 12px; }
  .nx-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  pre, code { max-width: 100%; overflow-x: auto; word-break: break-word; }
}
@media (max-width: 520px) {
  .nx-header .nx-donate-wrap { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
