/* ============================================================
   siteapp45 — NeonDelta Apps
   Visual language derived from the vn678.win landing probe:
   deep-sea navy canvas, cyan/gold neon accents, rounded glassy
   app panels, pill CTAs. Dark mode is the landing default
   (#07133d canvas); light mode lifts it to a bright marine
   variant of the same hue family.
   ============================================================ */

:root {
  --nd-radius: 14px;
  --nd-radius-lg: 20px;
  --nd-shell: 1180px;
  --nd-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --nd-canvas: #07133d;
  --nd-canvas-2: #0a1c52;
  --nd-surface: #101f57;
  --nd-surface-2: #16265f;
  --nd-header: rgba(7, 19, 61, 0.92);
  --nd-border: rgba(126, 200, 227, 0.22);
  --nd-text: #eaf6ff;
  --nd-muted: #9fb8d8;
  --nd-accent: #38d6e6;
  --nd-accent-strong: #00c2d4;
  --nd-accent-ink: #04222b;
  --nd-gold: #ffc75a;
  --nd-glow: rgba(56, 214, 230, 0.35);
  --nd-shadow: 0 14px 34px rgba(1, 6, 24, 0.5);
  --nd-input: #0b1846;
  --nd-input-border: rgba(126, 200, 227, 0.3);
}

[data-theme="light"] {
  --nd-canvas: #eaf6fb;
  --nd-canvas-2: #d7ecf6;
  --nd-surface: #ffffff;
  --nd-surface-2: #f2fafe;
  --nd-header: rgba(255, 255, 255, 0.94);
  --nd-border: rgba(10, 68, 102, 0.16);
  --nd-text: #0a2a44;
  --nd-muted: #47677f;
  --nd-accent: #0a99ad;
  --nd-accent-strong: #077e91;
  --nd-accent-ink: #ffffff;
  --nd-gold: #b8780a;
  --nd-glow: rgba(10, 153, 173, 0.22);
  --nd-shadow: 0 12px 28px rgba(10, 42, 68, 0.14);
  --nd-input: #ffffff;
  --nd-input-border: rgba(10, 68, 102, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nd-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--nd-text);
  background:
    radial-gradient(1100px 480px at 85% -120px, rgba(56, 214, 230, 0.16), transparent 62%),
    radial-gradient(900px 420px at -10% 30%, rgba(255, 199, 90, 0.08), transparent 60%),
    linear-gradient(180deg, var(--nd-canvas) 0%, var(--nd-canvas-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

.nd-page { display: flex; flex-direction: column; min-height: 100vh; }
.nd-shell { width: 100%; max-width: var(--nd-shell); margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nd-btn-solid {
  background: linear-gradient(180deg, var(--nd-accent) 0%, var(--nd-accent-strong) 100%);
  color: var(--nd-accent-ink);
  box-shadow: 0 6px 18px var(--nd-glow);
}
.nd-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--nd-glow); }
.nd-btn-line {
  border-color: var(--nd-accent);
  color: var(--nd-accent);
  background: transparent;
}
.nd-btn-line:hover { background: var(--nd-glow); }

/* ---------- header ---------- */
.nd-header { position: sticky; top: 0; z-index: 50; }
.nd-topbar {
  background: rgba(4, 10, 34, 0.75);
  border-bottom: 1px solid var(--nd-border);
  font-size: 13px;
}
[data-theme="light"] .nd-topbar { background: rgba(10, 68, 102, 0.08); }
.nd-topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.nd-topnote { color: var(--nd-muted); display: inline-flex; align-items: center; gap: 7px; }
.nd-topnote .fa-shield-halved { color: var(--nd-accent); }
.nd-topactions { display: flex; align-items: center; gap: 10px; }

.nd-modeswitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  color: var(--nd-text);
  border-radius: 999px;
  padding: 5px 13px 5px 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.nd-modeorb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffd97a 0%, #ffb02e 58%, #b96a00 100%);
  box-shadow: 0 0 8px rgba(255, 197, 90, 0.8);
  transition: background 0.2s ease;
}
[data-theme="dark"] .nd-modeorb {
  background: radial-gradient(circle at 68% 70%, #e8f6ff 0%, #9cc7e4 55%, #2e5f84 100%);
  box-shadow: 0 0 8px rgba(150, 210, 255, 0.75);
}
.nd-modeswitch:hover { border-color: var(--nd-accent); }

.nd-masthead {
  background: var(--nd-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nd-border);
}
.nd-mast-in {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 12px;
}
.nd-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.nd-brand-disc {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--nd-accent-ink);
  background: linear-gradient(145deg, var(--nd-accent) 10%, var(--nd-accent-strong) 90%);
  box-shadow: 0 6px 16px var(--nd-glow), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
}
.nd-brand-text { display: flex; flex-direction: column; line-height: 1.16; min-width: 0; }
.nd-brand-name { font-weight: 800; font-size: 19px; letter-spacing: 0.2px; white-space: nowrap; }
.nd-brand-sub { font-size: 11.5px; color: var(--nd-muted); letter-spacing: 0.6px; text-transform: uppercase; }

.nd-search {
  flex: 1 1 auto;
  display: flex;
  max-width: 460px;
  margin-left: auto;
  background: var(--nd-input);
  border: 1px solid var(--nd-input-border);
  border-radius: 999px;
  overflow: hidden;
}
.nd-search input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--nd-text);
  padding: 10px 18px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.nd-search input::placeholder { color: var(--nd-muted); }
.nd-search button {
  border: 0;
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-accent-strong));
  color: var(--nd-accent-ink);
  padding: 0 17px;
  cursor: pointer;
  font-size: 14px;
}
.nd-burger {
  display: none;
  background: var(--nd-surface);
  color: var(--nd-text);
  border: 1px solid var(--nd-border);
  border-radius: 10px;
  width: 42px; height: 40px;
  font-size: 17px;
  cursor: pointer;
}

.nd-catnav { border-top: 1px solid var(--nd-border); }
.nd-catrow { display: flex; flex-wrap: wrap; gap: 2px; }
.nd-catrow a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nd-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nd-catrow a:hover { color: var(--nd-text); }
.nd-catrow a.is-active {
  color: var(--nd-accent);
  border-bottom-color: var(--nd-accent);
}

/* ---------- hero ---------- */
.nd-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--nd-border);
  background:
    radial-gradient(720px 300px at 50% -80px, var(--nd-glow), transparent 70%);
  padding: 44px 0 40px;
  text-align: center;
}
.nd-hero-app { padding: 22px 0 14px; text-align: left; }
.nd-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--nd-accent);
  border: 1px solid var(--nd-accent);
  border-radius: 999px;
  padding: 5px 16px;
  margin: 0 0 14px;
  background: var(--nd-glow);
}
.nd-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 22px var(--nd-glow);
}
.nd-herolead { margin: 0 auto 22px; max-width: 640px; color: var(--nd-muted); font-size: 16.5px; }
.nd-heroctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.nd-herocount { margin: 4px 0 0; color: var(--nd-muted); font-size: 14px; }
.nd-heropulse { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.nd-heropulse span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--nd-accent);
  opacity: 0.35;
  animation: nd-pulse 1.6s ease-in-out infinite;
}
.nd-heropulse span:nth-child(2) { animation-delay: 0.25s; }
.nd-heropulse span:nth-child(3) { animation-delay: 0.5s; }
@keyframes nd-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

.nd-crumb { font-size: 13.5px; color: var(--nd-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nd-crumb a:hover { color: var(--nd-accent); }
.nd-crumbsep { opacity: 0.6; }

/* ---------- panels & grids ---------- */
.nd-framing { padding: 30px 20px 110px; }
.nd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.nd-postcols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }

.nd-panel {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-lg);
  padding: 22px 22px 24px;
  margin-bottom: 26px;
  box-shadow: var(--nd-shadow);
}
.nd-panelhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--nd-border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.nd-panelhead h2 { margin: 0; font-size: 21px; font-weight: 800; position: relative; padding-left: 14px; }
.nd-panelhead h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-gold));
}
.nd-panelhead p { margin: 0; font-size: 12.5px; color: var(--nd-muted); }
.nd-viewall { font-size: 13.5px; font-weight: 700; color: var(--nd-accent); white-space: nowrap; }
.nd-viewall:hover { text-decoration: underline; }

.nd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.nd-grid-catalog { padding: 26px 0 10px; margin: 0; }

/* ---------- app cards ---------- */
.nd-card {
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--nd-surface-2);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  padding: 13px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.nd-card:hover {
  transform: translateY(-3px);
  border-color: var(--nd-accent);
  box-shadow: 0 10px 22px var(--nd-glow);
}
.nd-cardthumb img {
  width: 64px; height: 64px;
  border-radius: 15px;
  object-fit: contain;
  background: var(--nd-input);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.nd-cardbody { min-width: 0; }
.nd-cardname { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.nd-cardname a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-cardname a:hover { color: var(--nd-accent); }
.nd-cardmeta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--nd-muted);
  align-items: center;
}
.nd-star { color: var(--nd-gold); font-weight: 700; }
.nd-cardtag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--nd-accent-ink);
  background: var(--nd-accent);
  border-radius: 5px;
  padding: 2px 7px;
}

/* ---------- rail ---------- */
.nd-rail, .nd-_postrail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 86px; }
.nd-railsearch {
  display: flex;
  background: var(--nd-input);
  border: 1px solid var(--nd-input-border);
  border-radius: 999px;
  overflow: hidden;
}
.nd-railsearch input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--nd-text);
  padding: 10px 16px;
  font-size: 13.5px;
  outline: none;
}
.nd-railsearch button {
  border: 0;
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-accent-strong));
  color: var(--nd-accent-ink);
  padding: 0 14px;
  cursor: pointer;
}
.nd-railcard {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-lg);
  padding: 18px;
  box-shadow: var(--nd-shadow);
}
.nd-railcard h2 { margin: 0 0 13px; font-size: 16.5px; font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--nd-border); }
.nd-socialgrid { display: flex; flex-wrap: wrap; gap: 9px; }
.nd-socialpill, .nd-socialpill > i { min-width: 38px; }
.nd-socialgrid a {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--nd-surface-2);
  border: 1px solid var(--nd-border);
  color: var(--nd-accent);
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.nd-socialgrid a:hover { background: var(--nd-accent); color: var(--nd-accent-ink); transform: translateY(-2px); }
.nd-raillist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nd-raillist li { border-bottom: 1px dashed var(--nd-border); }
.nd-raillist li:last-child { border-bottom: 0; }
.nd-raillist a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 2px;
  font-size: 13.5px;
  transition: color 0.15s ease;
}
.nd-raillist a:hover { color: var(--nd-accent); }
.nd-raillist a > img { border-radius: 10px; flex: 0 0 auto; }
.nd-raillist li > a:not(:has(img)) { justify-content: space-between; }
.nd-raillist li > span { font-size: 12.5px; color: var(--nd-muted); white-space: nowrap; }
.nd-relname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-relmeta { font-size: 11.5px; color: var(--nd-muted); flex: 0 0 auto; }
.nd-railcta p { margin: 0 0 12px; font-size: 13px; color: var(--nd-muted); }

/* ---------- summary card (detail) ---------- */
.nd-sumcard {
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-lg);
  box-shadow: var(--nd-shadow);
  padding: 22px;
  margin-bottom: 24px;
}
.nd-sumhead { display: flex; gap: 17px; align-items: center; margin-bottom: 17px; }
.nd-sumicon {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--nd-border);
  flex: 0 0 auto;
}
.nd-sumident { min-width: 0; }
.nd-sumname { margin: 0 0 6px; font-size: 23px; font-weight: 800; line-height: 1.25; }
.nd-summeta { margin: 0 0 13px; font-size: 13px; color: var(--nd-muted); }
.nd-dlbtn { font-size: 15.5px; padding: 12px 26px; }

.nd-facts { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.nd-facts tr { border-bottom: 1px dashed var(--nd-border); }
.nd-facts tr:last-child { border-bottom: 0; }
.nd-facts th {
  text-align: left;
  font-weight: 600;
  color: var(--nd-muted);
  font-size: 13px;
  padding: 8px 0;
  width: 42%;
}
.nd-facts td { font-weight: 700; font-size: 13.5px; }

.nd-discover {
  border-top: 1px solid var(--nd-border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.nd-discover b { font-size: 13.5px; }
.nd-discbtns { display: flex; gap: 8px; }
.nd-discbtns a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--nd-surface-2);
  border: 1px solid var(--nd-border);
  color: var(--nd-accent);
  font-weight: 800; font-size: 12.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nd-discbtns a:hover { background: var(--nd-accent); color: var(--nd-accent-ink); }

/* ---------- article / toc ---------- */
.nd-postbody { background: var(--nd-surface); border: 1px solid var(--nd-border); border-radius: var(--nd-radius-lg); padding: 22px; box-shadow: var(--nd-shadow); }
.nd-toc {
  border: 1px solid var(--nd-border);
  background: var(--nd-surface-2);
  border-radius: var(--nd-radius);
  padding: 15px 18px;
  margin-bottom: 20px;
}
.nd-tochead { font-weight: 800; font-size: 14px; margin-bottom: 9px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--nd-accent); }
.nd-toc ol { margin: 0; padding-left: 20px; font-size: 13.5px; }
.nd-toc ol ol { margin-top: 4px; }
.nd-toc a { color: var(--nd-muted); }
.nd-toc a:hover { color: var(--nd-accent); text-decoration: underline; }

.nd-guide { font-size: 15px; }
.nd-guide > p:first-child { font-size: 16.5px; font-weight: 600; color: var(--nd-text); }
.nd-guide p { margin: 0 0 13px; color: var(--nd-muted); }
.nd-guide h2 { margin: 26px 0 12px; font-size: 20px; font-weight: 800; position: relative; padding-left: 13px; }
.nd-guide h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px; background: var(--nd-accent); }
.nd-guide h3 { margin: 20px 0 10px; font-size: 16.5px; font-weight: 700; color: var(--nd-accent); }
.nd-guide ul, .nd-guide ol { margin: 0 0 15px; padding-left: 24px; color: var(--nd-muted); }
.nd-guide li { margin-bottom: 7px; }
/* Composited screenshots spliced between guide sections (apps.source_data.screenshots). */
.nd-shot { margin: 22px 0; }
.nd-shot img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--nd-radius);
  border: 1px solid var(--nd-border);
  background: var(--nd-surface);
}
.nd-shot figcaption {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--nd-muted);
  letter-spacing: .04em;
}
.nd-guide .nd-faq, .nd-guide details.nd-faq {
  border: 1px solid var(--nd-border);
  border-radius: 11px;
  background: var(--nd-surface-2);
  margin-bottom: 11px;
  overflow: hidden;
}
.nd-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 15px;
  list-style-position: inside;
  color: var(--nd-text);
}
.nd-faq summary:hover { color: var(--nd-accent); }
.nd-faq p { padding: 0 15px 13px; margin: 0; }

/* ---------- comments ---------- */
.nd-comments { padding-bottom: 115px; }
.nd-comments h2 { font-size: 21px; font-weight: 800; margin: 0 0 15px; position: relative; padding-left: 14px; }
.nd-comments h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--nd-accent), var(--nd-gold)); }
.nd-comments form { background: var(--nd-surface); border: 1px solid var(--nd-border); border-radius: var(--nd-radius-lg); padding: 20px; box-shadow: var(--nd-shadow); }
.nd-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 13px; }
.nd-comments label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nd-muted); }
.nd-comments input, .nd-comments textarea {
  background: var(--nd-input);
  border: 1px solid var(--nd-input-border);
  border-radius: 10px;
  color: var(--nd-text);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.nd-comments input:focus, .nd-comments textarea:focus { border-color: var(--nd-accent); }
.nd-comments button { margin-top: 14px; }
.nd-formok { margin: 13px 0 0; font-weight: 700; color: var(--nd-accent); }

/* ---------- 404 ---------- */
.nd-notfoundwrap { text-align: center; padding: 60px 20px 140px; }
.nd-nfcode { margin: 0; font-size: 84px; font-weight: 800; color: var(--nd-accent); text-shadow: 0 6px 30px var(--nd-glow); }
.nd-nftitle { font-size: 21px; font-weight: 700; margin: 8px 0 4px; }
.nd-nftip { color: var(--nd-muted); margin: 0 0 22px; }

/* ---------- footer ---------- */
.nd-footer {
  margin-top: auto;
  background: rgba(4, 10, 34, 0.78);
  border-top: 1px solid var(--nd-border);
}
[data-theme="light"] .nd-footer { background: rgba(10, 68, 102, 0.07); }
.nd-footgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-top: 34px;
  padding-bottom: 26px;
}
.nd-footabout { color: var(--nd-muted); font-size: 13.5px; margin: 12px 0 0; max-width: 380px; }
.nd-foottitle { font-size: 14.5px; font-weight: 800; margin: 0 0 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--nd-accent); }
.nd-footlinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.nd-footlinks a { color: var(--nd-muted); }
.nd-footlinks a:hover { color: var(--nd-accent); }
.nd-socialrow { display: flex; gap: 9px; }
.nd-socialpill {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--nd-surface-2);
  border: 1px solid var(--nd-border);
  color: var(--nd-accent);
  font-weight: 800; font-size: 13px;
}
.nd-socialpill:hover { background: var(--nd-accent); color: var(--nd-accent-ink); }
.nd-footbase { border-top: 1px solid var(--nd-border); padding: 14px 0; font-size: 12.5px; color: var(--nd-muted); }
.nd-footbase p { margin: 0; }
.nd-basebrand { color: var(--nd-accent); font-weight: 700; }

/* ---------- landing (download interstitial) ---------- */
.nd-landingdesc { margin: 0 0 16px; color: var(--nd-muted); font-size: 14.5px; line-height: 1.6; }
.nd-landingactions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.nd-dlinstall { border-top: 1px solid var(--nd-border); padding-top: 15px; }
.nd-dlinstall b { display: block; font-size: 15px; margin-bottom: 9px; color: var(--nd-accent); }
.nd-dlinstall ol { margin: 0; padding-left: 22px; color: var(--nd-muted); font-size: 14px; }
.nd-dlinstall li { margin-bottom: 7px; }

/* ---------- v2 detail pieces: category tag, description box, download kit ---------- */
.nd-cattag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--nd-accent-ink);
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-accent-strong));
  box-shadow: 0 4px 12px var(--nd-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nd-cattag:hover { transform: translateY(-2px); box-shadow: 0 7px 16px var(--nd-glow); }
.nd-sumident { display: flex; flex-direction: column; align-items: flex-start; }

.nd-descbox {
  border: 1px solid var(--nd-border);
  border-left: 4px solid var(--nd-accent);
  border-radius: var(--nd-radius);
  background: var(--nd-surface-2);
  padding: 14px 17px;
  margin-bottom: 16px;
}
.nd-descbox b {
  display: block;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--nd-accent);
  margin-bottom: 6px;
}
.nd-descbox p { margin: 0; color: var(--nd-muted); font-size: 14px; line-height: 1.62; }

.app-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--nd-accent-ink);
  background: linear-gradient(180deg, var(--nd-accent) 0%, var(--nd-accent-strong) 100%);
  box-shadow: 0 6px 18px var(--nd-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--nd-glow); }
.app-dl-btn.is-direct, .app-dl-btn.is-landing { text-decoration: none; }
.app-dl-btn.is-delay { cursor: pointer; }

.app-dl-zone {
  margin: 0 auto 30px;
  padding: 24px 22px;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-lg);
  background: var(--nd-surface);
  box-shadow: var(--nd-shadow);
  max-width: calc(var(--nd-shell) - 40px);
}
.app-dl-zone h2 { margin: 0 0 18px; font-size: 21px; font-weight: 800; position: relative; padding-left: 14px; }
.app-dl-zone h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-gold));
}
.app-dl-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  color: var(--nd-muted);
  font-size: 14px;
}
.app-dl-progress[hidden] { display: none; }
.app-dl-ring {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 4px solid var(--nd-border);
  border-top-color: var(--nd-accent);
  animation: nd-dl-spin 1s linear infinite;
  font-style: normal;
}
.app-dl-ring b { font-size: 18px; color: var(--nd-accent); }
@keyframes nd-dl-spin { to { transform: rotate(360deg); } }
.app-dl-install {
  padding: 16px 18px;
  border-radius: var(--nd-radius);
  background: var(--nd-surface-2);
  border: 1px dashed var(--nd-border);
  font-size: 13.5px;
  color: var(--nd-muted);
}
.app-dl-install b { display: block; margin-bottom: 9px; color: var(--nd-text); }
.app-dl-install ol { margin: 0; padding-left: 20px; line-height: 1.9; }
.app-dl-final {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-accent-strong));
  color: var(--nd-accent-ink);
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 6px 18px var(--nd-glow);
}
.app-dl-final:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--nd-glow); }
.app-dl-final[hidden] { display: none; }

/* ---------- floating login/register dock (target: bottom-center pill) ---------- */
.nd-floatdock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  gap: 10px;
  background: var(--nd-header);
  border: 1px solid var(--nd-border);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 10px 30px rgba(1, 6, 24, 0.55);
  backdrop-filter: blur(8px);
}
.nd-floatdock .nd-btn { padding: 8px 20px; font-size: 13.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nd-cols, .nd-postcols { grid-template-columns: 1fr; }
  .nd-rail, .nd-_postrail { position: static; }
  .nd-_postrail { order: 2; border-top: 1px solid var(--nd-border); padding-top: 8px; }
}

@media (max-width: 785px) {
  .nd-mast-in { flex-wrap: wrap; }
  .nd-search { order: 3; flex-basis: 100%; max-width: none; }
  .nd-burger { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nd-search { margin-left: 0; }
  .nd-catrow { display: none; }
  .nd-catrow.open { display: flex; flex-direction: column; }
  .nd-catrow a { border-bottom: 0; border-left: 2px solid transparent; padding: 10px 14px; }
  .nd-catrow a.is-active { border-left-color: var(--nd-accent); }
  .nd-hero { padding: 30px 0 28px; }
  .nd-framing { padding: 20px 14px 120px; }
  .nd-panel { padding: 17px 15px 19px; }
  .nd-formgrid { grid-template-columns: 1fr; }
  .nd-footgrid { grid-template-columns: 1fr; gap: 22px; }
  .nd-sumhead { flex-direction: row; }
  .nd-sumicon { width: 64px; height: 64px; }
  .nd-sumname { font-size: 19px; }
  .nd-floatdock { bottom: 10px; }
  .nd-floatdock .nd-btn { padding: 7px 15px; font-size: 12.5px; }
}

/* Compact two-column catalog grid on phones (target keeps 2-up cards). */
@media (max-width: 640px) {
  .nd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nd-card { flex-direction: column; align-items: flex-start; gap: 9px; padding: 11px; }
  .nd-cardthumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .nd-cardname { font-size: 13.5px; }
  .nd-cardname a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .nd-descbox, .app-dl-zone { margin-left: 0; margin-right: 0; }
  .app-dl-zone { max-width: none; }
  .nd-sumhead { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .nd-heropulse span { animation: none; }
  .nd-btn, .nd-card { transition: none; }
}

/* ---------- v2.1 (en + vi retrofit): language pill, category tag row, related line ---------- */
.nd-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--nd-input);
  border: 1px solid var(--nd-border);
  border-radius: 999px;
  padding: 3px;
}
.nd-langseg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: var(--nd-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
a.nd-langseg:hover { color: var(--nd-accent); }
.nd-langseg.is-active {
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-accent-strong));
  color: var(--nd-accent-ink);
}

.nd-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.nd-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--nd-border);
  background: var(--nd-surface-2);
  color: var(--nd-muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 12.5px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.nd-tag:hover { color: var(--nd-accent); border-color: var(--nd-accent); }
.nd-tag.is-active {
  color: var(--nd-accent-ink);
  background: linear-gradient(180deg, var(--nd-accent), var(--nd-accent-strong));
  border-color: transparent;
  box-shadow: 0 4px 12px var(--nd-glow);
}

.nd-sourceline {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--nd-muted);
}
.nd-sourceline a {
  color: var(--nd-accent);
  font-weight: 600;
}
.nd-sourceline a:hover { text-decoration: underline; }

.nd-articlecol { min-width: 0; }
.nd-article { min-width: 0; }
