/* yunr.org · 客户专属导航站 — 样式
 * 三套主题通过 [data-theme="..."] 切换；CSS 变量在主题切换时整体替换。
 */

/* ─── Theme tokens ───────────────────────────────────────── */
:root,
[data-theme="cream"] {
  --page: #efece4;
  --panel: #ffffff;
  --panel-inner: #fbfaf6;
  --card-bg: #ffffff;
  --line: #e7e2d5;
  --muted: #7a7363;
  --fg: #1a1916;
  --sub: #3a352c;
  --accent: oklch(0.55 0.13 38);
  --accent-bg: oklch(0.96 0.025 70);
  --accent-line: oklch(0.55 0.13 38 / 0.35);
  --row-hover: #1a1916;
  --row-hover-text: #ffffff;
  --rec-bg: oklch(0.96 0.04 70);
  --rec-border: oklch(0.55 0.13 38 / 0.32);
  --glyph-fg: #1a1916;
  --glyph-bg: #f4f1ea;
  --card-hover-bg: #1a1916;
  --card-hover-text: #f4f1ea;
  --shadow: 0 18px 40px -22px rgba(60, 40, 10, 0.35), 0 2px 0 rgba(60, 40, 10, 0.04);
  --card-border: rgba(60, 40, 10, 0.10);
  --card-rest-shadow: 0 1px 2px rgba(60, 40, 10, 0.05), 0 8px 22px -12px rgba(60, 40, 10, 0.12);
}

[data-theme="paper"] {
  --page: #fafafa;
  --panel: #ffffff;
  --panel-inner: #fafafa;
  --card-bg: #ffffff;
  --line: #e5e5e5;
  --muted: #737373;
  --fg: #0a0a0a;
  --sub: #262626;
  --accent: #0a0a0a;
  --accent-bg: #f5f5f5;
  --accent-line: #262626;
  --row-hover: #0a0a0a;
  --row-hover-text: #ffffff;
  --rec-bg: #f5f5f5;
  --rec-border: #0a0a0a;
  --glyph-fg: #0a0a0a;
  --glyph-bg: #fafafa;
  --card-hover-bg: #0a0a0a;
  --card-hover-text: #ffffff;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.25);
  --card-border: rgba(0, 0, 0, 0.10);
  --card-rest-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 22px -12px rgba(0, 0, 0, 0.10);
}

[data-theme="dusk"] {
  --page: #0e0e10;
  --panel: #16161a;
  --panel-inner: #1c1c20;
  --card-bg: #1c1c20;
  --line: #26262c;
  --muted: #8a8a92;
  --fg: #f0f0f2;
  --sub: #d0d0d4;
  --accent: oklch(0.82 0.09 175);
  --accent-bg: #1c1c20;
  --accent-line: oklch(0.82 0.09 175 / 0.5);
  --row-hover: oklch(0.82 0.09 175);
  --row-hover-text: #0a0a0a;
  --rec-bg: oklch(0.25 0.04 175 / 0.4);
  --rec-border: oklch(0.82 0.09 175 / 0.5);
  --glyph-fg: oklch(0.82 0.09 175);
  --glyph-bg: #1c1c20;
  --card-hover-bg: #26262c;
  --card-hover-text: #f0f0f2;
  --shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-rest-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 22px -12px rgba(0, 0, 0, 0.55);
}

/* ─── Base ──────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--page);
  color: var(--fg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 220ms ease, color 220ms ease;
}
button { font-family: inherit; }

/* ─── Splash (开屏遮罩) ──────────────────────────────────── */
.nb-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--page);
  color: var(--fg);
  cursor: pointer;
  user-select: none;
  animation: nb-splash-in 320ms ease;
}
.nb-splash.leaving {
  animation: nb-splash-out 380ms ease forwards;
  pointer-events: none;
}
@keyframes nb-splash-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes nb-splash-out { to { opacity: 0; transform: scale(1.02); } }

.nb-splash-inner {
  max-width: 640px;
  text-align: center;
  animation: nb-splash-pop 640ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes nb-splash-pop {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nb-splash-mark {
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  border-radius: 18px;
  background: var(--fg);
  color: var(--page);
  display: grid; place-items: center;
  font-weight: 800; font-size: 34px;
  letter-spacing: -0.04em;
  box-shadow: var(--card-rest-shadow);
}

.nb-splash-eyebrow {
  margin: 0 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nb-splash-url {
  display: inline-flex;
  align-items: baseline;
  padding: 16px 28px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-rest-shadow);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}
.nb-splash-url .domain {
  display: inline-flex;
  align-items: baseline;
  column-gap: 0;
  font-size: 44px;
  font-weight: 500;
  color: var(--fg);
  /* 关键：先保留间距停顿，然后把两半合并 */
  animation: nb-splash-merge 1700ms cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.nb-splash-url .part {
  display: inline-block;
  opacity: 0;
  animation: nb-splash-part-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nb-splash-url .part-l { animation-delay: 80ms; }
.nb-splash-url .part-r { animation-delay: 220ms; }

@keyframes nb-splash-part-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nb-splash-merge {
  0%   { column-gap: 0.55em; }
  45%  { column-gap: 0.55em; }   /* 前 ~765ms 保持分开 */
  100% { column-gap: 0; }        /* 之后 ~935ms 平滑合并 */
}

.nb-splash-tag {
  margin: 24px 0 0;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.nb-splash-skip {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: nb-splash-fade-in 600ms ease 600ms forwards;
}
@keyframes nb-splash-fade-in { to { opacity: 1; } }

.nb-splash-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.nb-splash-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  animation: nb-splash-fill 2200ms linear forwards;
}
@keyframes nb-splash-fill { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .nb-splash,
  .nb-splash.leaving,
  .nb-splash-inner,
  .nb-splash-progress-fill,
  .nb-splash-skip,
  .nb-splash-url .domain,
  .nb-splash-url .part { animation: none; }
  .nb-splash-skip,
  .nb-splash-url .part { opacity: 1; }
  .nb-splash-url .domain { column-gap: 0; }
}

@media (max-width: 719px) {
  .nb-splash-mark { width: 54px; height: 54px; font-size: 28px; margin-bottom: 22px; }
  .nb-splash-url { padding: 12px 20px; }
  .nb-splash-url .domain { font-size: 32px; }
  .nb-splash-tag { font-size: 14px; margin-top: 18px; }
  .nb-splash-skip { bottom: 18px; }
}

.nb-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 28px 40px;
}

/* ─── Top bar ───────────────────────────────────────────── */
.nb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.nb-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.nb-brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--page);
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.04em;
  box-shadow: var(--card-rest-shadow);
}
.nb-brand b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.nb-brand-tag {
  margin-left: 6px;
  padding-left: 14px;
  font-size: 13px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}
.nb-topbar-right { display: flex; align-items: center; gap: 10px; }
.nb-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.nb-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: oklch(0.7 0.18 145);
  box-shadow: 0 0 8px oklch(0.7 0.18 145 / 0.6);
  animation: nb-pulse 1.6s ease-in-out infinite;
}
@keyframes nb-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.nb-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--fg);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.nb-theme-toggle:hover {
  background: var(--fg);
  color: var(--page);
  border-color: var(--fg);
}
.nb-theme-toggle svg { width: 14px; height: 14px; }
.nb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--page);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 180ms;
}
.nb-cta:hover { opacity: 0.85; }

/* ─── Title band ────────────────────────────────────────── */
.nb-titleband {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 6px 22px;
}
.nb-titleband h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.nb-titleband h1 em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.nb-titleband p {
  margin: 10px 0 0;
  max-width: 56ch;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.nb-titleband-meta {
  flex-shrink: 0;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.nb-titleband-meta b {
  display: block;
  color: var(--fg);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

/* ─── Main panel ────────────────────────────────────────── */
.nb-panel {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
}

/* ─── Product grid ──────────────────────────────────────── */
.nb-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nb-product {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 220px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-rest-shadow);
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: background 220ms ease, color 220ms ease,
              transform 220ms ease, border-color 220ms ease,
              box-shadow 220ms ease;
}
.nb-product:hover {
  background: var(--card-hover-bg);
  color: var(--card-hover-text);
  border-color: var(--card-hover-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.nb-product:hover .nb-prod-glyph {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--card-hover-text);
}
.nb-product:hover .nb-prod-desc,
.nb-product:hover .nb-prod-bottom .label { color: rgba(255, 255, 255, 0.7); }
.nb-product:hover .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--card-hover-text);
  border-color: rgba(255, 255, 255, 0.18);
}
.nb-product:hover .nb-prod-arrow { transform: translate(4px, -4px); color: var(--card-hover-text); }
.nb-product:hover .nb-prod-count b { color: var(--card-hover-text); }
.nb-product:hover .nb-prod-count { color: rgba(255, 255, 255, 0.7); }
.nb-product:hover .nb-prod-bottom { border-top-color: rgba(255, 255, 255, 0.18); }
.nb-product:hover .nb-prod-bottom .label b { color: var(--card-hover-text); }
.nb-product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nb-prod-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.nb-prod-glyph {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--glyph-bg);
  color: var(--glyph-fg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: background 220ms, color 220ms, border-color 220ms;
}
.nb-prod-count {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  transition: color 220ms;
}
.nb-prod-count b {
  display: block;
  line-height: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--fg);
  transition: color 220ms;
}

.nb-prod-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nb-prod-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.nb-prod-name {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--panel-inner);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: all 220ms;
}
.nb-prod-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  transition: color 220ms;
}

.nb-prod-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 220ms;
}
.nb-prod-bottom .label { font-size: 13px; color: var(--muted); transition: color 220ms; }
.nb-prod-bottom .label b { color: var(--fg); font-weight: 600; transition: color 220ms; }
.nb-prod-bottom .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.nb-prod-arrow {
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform 240ms, color 220ms;
}

/* ─── Contact strip ─────────────────────────────────────── */
.nb-contact {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px 28px;
  background: var(--panel-inner);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.nb-contact-left h4 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nb-contact-left h4 .tag-online {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  padding: 3px 8px;
  border-radius: 999px;
  background: oklch(0.97 0.05 145 / 0.4);
  border: 1px solid oklch(0.7 0.18 145 / 0.4);
  color: oklch(0.55 0.18 145);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.nb-contact-left p {
  margin: 0 0 14px;
  max-width: 56ch;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.nb-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nb-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.nb-contact-action:hover {
  background: var(--fg);
  color: var(--page);
  border-color: var(--fg);
}
.nb-contact-action.primary {
  background: var(--fg);
  color: var(--page);
  border-color: var(--fg);
}
.nb-contact-action.primary:hover { opacity: 0.85; }

.nb-qr-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.nb-qr-img {
  display: block;
  width: 96px; height: 96px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.nb-qr-text {
  max-width: 140px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.nb-qr-text b {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* ─── Footer ────────────────────────────────────────────── */
.nb-foot {
  margin-top: 20px;
  padding: 14px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nb-foot b {
  color: var(--fg);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* ─── Modal ─────────────────────────────────────────────── */
@keyframes nb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nb-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nb-modal-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: nb-fade 180ms ease;
}
.nb-modal-back[hidden] { display: none; }
.nb-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
  animation: nb-pop 220ms cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}
.nb-modal-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.nb-modal-glyph {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--glyph-bg);
  color: var(--glyph-fg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 500;
}
.nb-modal-titles {
  flex: 1;
  min-width: 0;
  padding-right: 30px;
}
.nb-modal-titles .row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.nb-modal-titles h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nb-modal-titles p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.nb-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--fg);
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.nb-modal-close:hover {
  background: var(--fg);
  color: var(--page);
  border-color: var(--fg);
}

.nb-modal-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: var(--panel-inner);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nb-modal-sub b {
  color: var(--fg);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.nb-modal-sub .hint { margin-left: auto; }

.nb-invite-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-bg);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms, transform 120ms;
}
.nb-invite-code:hover { transform: translateY(-1px); }
.nb-invite-code:active { transform: translateY(0); }
.nb-invite-code .code {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nb-invite-code.copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.nb-invite-code.copied .code { color: #fff; }

/* ─── Line list inside modal ────────────────────────────── */
.nb-lines {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nb-line {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.nb-line:hover {
  background: var(--row-hover);
  color: var(--row-hover-text);
}
.nb-line:hover .nb-line-url,
.nb-line:hover .nb-line-region {
  color: var(--row-hover-text);
  opacity: 0.75;
}
.nb-line:hover .nb-line-arrow {
  transform: translate(3px, -3px);
  color: var(--row-hover-text);
}
.nb-line-star {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--accent);
  background: transparent;
}
.nb-line-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
}
.nb-line.recommended {
  background: var(--rec-bg);
  border: 1px solid var(--rec-border);
  padding-top: 10px;
  padding-bottom: 10px;
}
.nb-line.recommended .nb-line-star {
  background: rgba(0, 0, 0, 0.04);
  color: var(--accent);
}
[data-theme="dusk"] .nb-line.recommended .nb-line-star {
  background: rgba(255, 255, 255, 0.04);
}
.nb-line.recommended:hover {
  background: var(--row-hover);
  border-color: var(--row-hover);
}
.nb-line.recommended:hover .nb-line-star {
  background: rgba(255, 255, 255, 0.12);
  color: var(--row-hover-text);
}
.nb-line-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.nb-line-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nb-line-region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nb-line-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.nb-line-arrow {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform 220ms, color 220ms;
}
.nb-line.recommended .nb-line-arrow { color: var(--accent); }

/* ─── Purchase CTA banner (optional, e.g. card-key shop) ── */
.nb-purchase {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 12px 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nb-purchase:hover {
  background: var(--accent);
  color: var(--page);
  transform: translateY(-1px);
}
.nb-purchase-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
}
[data-theme="dusk"] .nb-purchase-icon { background: rgba(0, 0, 0, 0.25); }
.nb-purchase:hover .nb-purchase-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--page);
}
.nb-purchase-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nb-purchase-label {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nb-purchase:hover .nb-purchase-label { color: var(--page); }
.nb-purchase-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.nb-purchase:hover .nb-purchase-sub { color: rgba(255, 255, 255, 0.7); }
[data-theme="paper"] .nb-purchase:hover .nb-purchase-sub { color: rgba(255, 255, 255, 0.7); }
.nb-purchase-arrow {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform 220ms;
}
.nb-purchase:hover .nb-purchase-arrow { transform: translate(3px, -3px); }

.nb-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nb-modal-foot-close {
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: background 180ms, color 180ms;
}
.nb-modal-foot-close:hover {
  background: var(--fg);
  color: var(--page);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1099px) {
  /* tablet — keep 2-col products but tighten outer padding */
  .nb-wrap { padding: 22px 22px 36px; }
}

@media (max-width: 719px) {
  .nb-wrap { padding: 18px 14px 32px; }
  .nb-topbar { padding: 12px 16px; margin-bottom: 16px; }
  .nb-brand { gap: 11px; }
  .nb-brand-mark { width: 36px; height: 36px; font-size: 19px; border-radius: 10px; }
  .nb-brand b { font-size: 19px; }
  .nb-brand-tag { display: none; }
  .nb-status { display: none; }

  .nb-titleband { padding: 6px 4px 16px; }
  .nb-titleband h1 { font-size: 26px; }
  .nb-titleband-meta { display: none; }

  .nb-panel { padding: 16px; border-radius: 18px; }
  .nb-products { grid-template-columns: 1fr; gap: 12px; }
  .nb-product { padding: 20px; min-height: 180px; }
  .nb-prod-glyph { width: 44px; height: 44px; font-size: 20px; }
  .nb-prod-name { font-size: 22px; }
  .nb-prod-count b { font-size: 20px; }

  .nb-contact {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    margin-top: 12px;
  }
  .nb-contact-left h4 { font-size: 18px; }
  .nb-qr-wrap { justify-self: stretch; }

  .nb-foot { margin-top: 16px; padding: 12px 18px; }

  .nb-modal-back { padding: 12px; }
  .nb-modal { max-height: calc(100vh - 24px); }
  .nb-line-url { display: none; }
  .nb-modal-sub .hint { margin-left: 0; }
}
