/* QuiNVarium Wallet — компоненты.
   Правило файла: ни одного цвета мимо токена. Всё, что различается между
   светлой и тёмной темой, живёт в tokens.css. */

* { box-sizing: border-box; }

html,
body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--qnv-bg);
  color: var(--qnv-text);
  font-family: var(--qnv-font-ui);
  font-size: var(--qnv-text-body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea { font: inherit; color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--qnv-accent);
  outline-offset: 2px;
}

.qnv-demo-body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 0;
}

/* ── Корпус телефона ──────────────────────────────────────────────── */

.qnv-phone {
  position: relative;
  width: min(100%, var(--qnv-mobile-width));
  height: var(--qnv-mobile-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--qnv-bg);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-phone);
  box-shadow: var(--qnv-phone-shadow);
}

.qnv-phone__header {
  position: relative;
  z-index: 5;
  min-height: 56px;
  padding: 14px var(--qnv-space-4) 12px;
  display: flex;
  align-items: center;
  gap: var(--qnv-space-2);
  background: var(--qnv-chrome);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qnv-border);
}

.qnv-phone__header-title {
  margin: 0;
  font-size: var(--qnv-text-h2);
  font-weight: 600;
  letter-spacing: -.01em;
}

.qnv-phone__header-spacer { margin-left: auto; }

.qnv-phone__content {
  min-height: 0;
  flex: 1;
  padding: var(--qnv-space-4) var(--qnv-space-4) 88px;
  overflow: auto;
  scrollbar-width: none;
}

.qnv-phone__content::-webkit-scrollbar { display: none; }
.qnv-phone__content--no-nav { padding-bottom: var(--qnv-space-6); }

/* ── Логотип ──────────────────────────────────────────────────────
   Используются только утверждённые SVG из brand source. Wordmark уже
   переведён в кривые; подстановка системного шрифта исключена. */

.qnv-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.qnv-brand__asset {
  display: block;
  width: 126px;
  height: auto;
  flex: none;
}

.qnv-brand__asset--panel { width: 118px; }

.qnv-theme-asset--ondark { display: none; }

.qnv-theme-mark {
  position: relative;
  display: inline-block;
  flex: none;
}

.qnv-theme-mark > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:root[data-theme="dark"] .qnv-theme-asset--onlight { display: none; }
:root[data-theme="dark"] .qnv-theme-asset--ondark { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .qnv-theme-asset--onlight { display: none; }
  :root:not([data-theme="light"]) .qnv-theme-asset--ondark { display: block; }
}

/* ── Иконки и кнопки-иконки ───────────────────────────────────────── */

.qnv-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qnv-icon-button {
  width: var(--qnv-icon-button);
  height: var(--qnv-icon-button);
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--qnv-text-secondary);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-pill);
  background: var(--qnv-surface);
  cursor: pointer;
}

.qnv-icon-button--quiet {
  border-color: transparent;
  background: transparent;
}

.qnv-icon-button:hover { background: var(--qnv-surface-pressed); }

.qnv-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--qnv-accent);
  border: 1px solid var(--qnv-accent-line);
  border-radius: var(--qnv-radius-pill);
  background: var(--qnv-accent-soft);
  font-size: var(--qnv-text-caption);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── Типографика экрана ───────────────────────────────────────────── */

.qnv-screen-title {
  margin: 0;
  font-size: var(--qnv-text-h1);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.qnv-screen-subtitle {
  margin: 6px 0 0;
  color: var(--qnv-text-muted);
  font-size: var(--qnv-text-sm);
  line-height: 1.5;
}

.qnv-section-title {
  margin: 0;
  font-size: var(--qnv-text-sm);
  font-weight: 600;
  letter-spacing: -.01em;
}

.qnv-caption {
  color: var(--qnv-text-muted);
  font-size: var(--qnv-text-caption);
  line-height: 1.45;
}

.qnv-kicker {
  color: var(--qnv-text-muted);
  font-family: var(--qnv-font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── Бейджи ───────────────────────────────────────────────────────── */

.qnv-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--qnv-space-2);
}

.qnv-badge {
  min-height: 26px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--qnv-text-secondary);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-pill);
  background: var(--qnv-surface);
  font-size: var(--qnv-text-caption);
  letter-spacing: .02em;
  white-space: nowrap;
}

.qnv-badge--accent {
  color: var(--qnv-accent);
  border-color: var(--qnv-accent-line);
  background: var(--qnv-accent-soft);
}

.qnv-status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--qnv-success);
}

/* ── Панели ───────────────────────────────────────────────────────── */

.qnv-panel {
  min-width: 0;
  padding: var(--qnv-space-4);
  color: var(--qnv-text);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-panel);
  background: var(--qnv-surface);
  box-shadow: var(--qnv-shadow-panel);
}

.qnv-panel + .qnv-panel { margin-top: var(--qnv-space-3); }

/* ── Кнопки ───────────────────────────────────────────────────────── */

.qnv-button {
  min-height: var(--qnv-control-height);
  padding: 12px var(--qnv-space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--qnv-space-2);
  color: var(--qnv-text);
  border: 1px solid var(--qnv-border-strong);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-surface);
  font-size: var(--qnv-text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--qnv-motion-press) var(--qnv-ease),
              background var(--qnv-motion-state) var(--qnv-ease);
}

.qnv-button:active { transform: scale(.99); }

.qnv-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.qnv-button--primary {
  color: var(--qnv-on-accent);
  border-color: var(--qnv-accent);
  background: var(--qnv-accent);
}

.qnv-button--primary:hover { background: var(--qnv-accent-hover); border-color: var(--qnv-accent-hover); }
.qnv-button--secondary:hover { background: var(--qnv-surface-pressed); }
.qnv-button--full { width: 100%; }

.qnv-inline-link {
  margin-left: auto;
  padding: 0;
  color: var(--qnv-accent);
  border: 0;
  background: transparent;
  font-size: var(--qnv-text-label);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* ── Список выбора (онбординг) ────────────────────────────────────── */

.qnv-choice-list {
  display: grid;
  gap: var(--qnv-space-2);
}

.qnv-choice {
  width: 100%;
  min-height: 72px;
  padding: var(--qnv-space-3);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--qnv-space-3);
  color: var(--qnv-text);
  text-align: left;
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-panel);
  background: var(--qnv-surface);
  box-shadow: var(--qnv-shadow-panel);
  text-decoration: none;
}

.qnv-choice:hover { border-color: var(--qnv-accent-line); }

.qnv-choice__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--qnv-accent);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-accent-soft);
}

.qnv-choice strong,
.qnv-choice small { display: block; }
.qnv-choice strong { font-size: var(--qnv-text-sm); font-weight: 600; }
.qnv-choice small { margin-top: 3px; color: var(--qnv-text-muted); font-size: var(--qnv-text-caption); line-height: 1.4; }
.qnv-choice > .qnv-icon { color: var(--qnv-text-faint); }

/* ── Premium balance panel ─────────────────────────────────────────
   Фирменная синяя поверхность для баланса без физической платёжной
   семантики. */

.qnv-balance-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  /* OWNER VISUAL OVERRIDE: только ландшафтная пропорция ISO/IEC 7810 ID-1
     85.60 × 53.98. Это геометрия QNV balance panel, не добавление
     банковской/платёжной семантики. Канонический V3 kit не изменён. */
  aspect-ratio: 85.6 / 53.98;
  min-height: 0;
  height: auto;
  flex: none;
  overflow: hidden;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  color: var(--qnv-card-ink);
  border-radius: 18px;
  background: var(--qnv-card-face);
  box-shadow: var(--qnv-card-shadow), inset 0 1px rgba(255, 255, 255, .22);
}

/* Дуга кольца знака образует фирменный фон панели. */
.qnv-balance-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -96px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  border: 40px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.qnv-balance-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 88% 6%, rgba(255, 255, 255, .18), transparent 42%);
}

.qnv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qnv-space-3);
}

.qnv-card-type {
  color: rgba(255, 255, 255, .78);
  font-family: var(--qnv-font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.qnv-card-balance {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.qnv-card-balance > span {
  color: rgba(255, 255, 255, .76);
  font-size: var(--qnv-text-caption);
}

.qnv-card-amount {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* Значащая часть суммы крупно, хвост нулей — мелко и приглушённо.
   Точность не теряется, читаемость появляется. */
.qnv-card-amount .qnv-amount-main { font-size: 29px; line-height: 1; }
.qnv-card-amount .qnv-amount-unit {
  margin-left: 2px;
  font-size: var(--qnv-text-label);
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .82);
}

.qnv-card-detail {
  margin-top: 4px;
  color: rgba(255, 255, 255, .62);
  font-family: var(--qnv-font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.qnv-card-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.qnv-card-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qnv-card-meta small {
  color: rgba(255, 255, 255, .6);
  font-family: var(--qnv-font-mono);
  font-size: 8px;
  letter-spacing: .1em;
}
.qnv-card-meta b {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qnv-card-seal {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--qnv-card-ink);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
}

.qnv-card-seal img { width: 18px; height: 18px; display: block; }

.qnv-card-privacy {
  position: absolute;
  z-index: 3;
  right: var(--qnv-space-4);
  top: 46px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--qnv-card-ink);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.qnv-card-privacy .qnv-icon { width: 14px; height: 14px; }

.qnv-balance-card[data-hidden="true"] .qnv-card-amount {
  filter: blur(7px);
  user-select: none;
}

/* ── Быстрые действия ─────────────────────────────────────────────── */

.qnv-quick-actions {
  margin-top: var(--qnv-space-3);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--qnv-space-2);
}

.qnv-quick-action {
  min-height: 56px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--qnv-text);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-surface);
  box-shadow: var(--qnv-shadow-panel);
  font-size: var(--qnv-text-label);
  font-weight: 500;
  text-decoration: none;
}

.qnv-quick-action .qnv-icon { color: var(--qnv-accent); width: 19px; height: 19px; }
.qnv-quick-action:hover { border-color: var(--qnv-accent-line); }

/* ── Операции ─────────────────────────────────────────────────────── */

.qnv-list-head {
  margin-bottom: var(--qnv-space-1);
  display: flex;
  align-items: center;
  gap: var(--qnv-space-3);
}

.qnv-transaction-row {
  width: 100%;
  min-height: 60px;
  padding: var(--qnv-space-3) 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--qnv-space-3);
  color: var(--qnv-text);
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--qnv-border);
  background: transparent;
  cursor: pointer;
}

.qnv-transaction-row:last-child { border-bottom: 0; padding-bottom: 0; }

.qnv-transaction-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--qnv-text-secondary);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-sm);
  background: var(--qnv-surface-sunken);
}

.qnv-transaction-icon .qnv-icon { width: 16px; height: 16px; }

.qnv-transaction-main strong,
.qnv-transaction-main small,
.qnv-transaction-value small { display: block; }

.qnv-transaction-main strong {
  overflow: hidden;
  font-size: var(--qnv-text-sm);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qnv-transaction-main small { margin-top: 3px; color: var(--qnv-text-muted); font-size: var(--qnv-text-caption); }

.qnv-transaction-value {
  color: var(--qnv-text);
  font-family: var(--qnv-font-mono);
  font-size: var(--qnv-text-label);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.qnv-transaction-value small {
  margin-top: 3px;
  max-width: 128px;
  overflow: hidden;
  color: var(--qnv-text-faint);
  font-family: var(--qnv-font-ui);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qnv-transaction-value--positive { color: var(--qnv-success); }

/* ── Нижняя навигация ─────────────────────────────────────────────── */

.qnv-bottom-nav {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  padding: 10px var(--qnv-space-2) 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--qnv-border);
  border-radius: 0 0 calc(var(--qnv-radius-phone) - 1px) calc(var(--qnv-radius-phone) - 1px);
  background: var(--qnv-chrome);
  backdrop-filter: blur(14px);
}

.qnv-bottom-nav__item {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--qnv-text-faint);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.qnv-bottom-nav__item--active { color: var(--qnv-accent); }
.qnv-bottom-nav__item .qnv-icon { width: 20px; height: 20px; }

/* ── Поля ─────────────────────────────────────────────────────────── */

.qnv-field + .qnv-field { margin-top: var(--qnv-space-4); }

.qnv-field__label {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: var(--qnv-space-2);
  color: var(--qnv-text-secondary);
  font-size: var(--qnv-text-label);
  font-weight: 600;
}

.qnv-field__meta {
  margin-left: auto;
  color: var(--qnv-text-muted);
  font-size: var(--qnv-text-caption);
  font-weight: 400;
}

.qnv-control {
  width: 100%;
  min-height: var(--qnv-control-height);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: var(--qnv-space-2);
  color: var(--qnv-text);
  border: 1px solid var(--qnv-border-strong);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-surface-sunken);
}

.qnv-control:focus-within {
  border-color: var(--qnv-accent);
  box-shadow: 0 0 0 3px var(--qnv-accent-soft);
}

.qnv-control input,
.qnv-control textarea {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--qnv-text-body);
}

.qnv-control input::placeholder,
.qnv-control textarea::placeholder { color: var(--qnv-text-faint); }

.qnv-control--amount { min-height: 54px; }
.qnv-control--amount input {
  font-family: var(--qnv-font-mono);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.qnv-field-feedback {
  margin-top: 7px;
  margin-bottom: 0;
  color: var(--qnv-text-muted);
  font-size: var(--qnv-text-caption);
}

.qnv-field-feedback--error { color: var(--qnv-danger); }
.qnv-control:has([aria-invalid="true"]) { border-color: var(--qnv-danger); }

/* ── Токен-чип, адрес, получатель ─────────────────────────────────── */

.qnv-token-chip {
  min-height: 34px;
  padding: 6px 10px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--qnv-text);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-pill);
  background: var(--qnv-surface);
  font-size: var(--qnv-text-label);
  font-weight: 600;
  letter-spacing: .02em;
}

.qnv-token-chip img { width: 20px; height: 20px; flex: none; }
.qnv-token-mark { width: 20px; height: 20px; }

.qnv-address {
  overflow-wrap: anywhere;
  color: var(--qnv-text-secondary);
  font-family: var(--qnv-font-mono);
  font-size: var(--qnv-text-label);
  line-height: 1.6;
}

.qnv-address b { color: var(--qnv-text); font-weight: 600; }
.qnv-address--lab { font-size: 11px; letter-spacing: -.02em; }
.qnv-address--placeholder {
  min-height: 54px;
  padding: 13px;
  display: flex;
  align-items: center;
  color: var(--qnv-text-muted);
  border: 1px dashed var(--qnv-border-strong);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-surface-sunken);
}

.qnv-recipient {
  padding: var(--qnv-space-3);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--qnv-space-3);
  border: 1px solid var(--qnv-border-strong);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-surface-sunken);
}

.qnv-recipient__avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--qnv-accent);
  border-radius: 50%;
  background: var(--qnv-accent-soft);
  font-size: var(--qnv-text-label);
  font-weight: 600;
}

.qnv-recipient strong,
.qnv-recipient small { display: block; }
.qnv-recipient strong { font-size: var(--qnv-text-sm); font-weight: 600; }
.qnv-recipient small { margin-top: 3px; color: var(--qnv-text-muted); font-family: var(--qnv-font-mono); font-size: var(--qnv-text-caption); }
.qnv-recipient--placeholder { border-style: dashed; }

/* ── Предупреждения ───────────────────────────────────────────────── */

.qnv-notice {
  padding: var(--qnv-space-3);
  display: flex;
  align-items: flex-start;
  gap: var(--qnv-space-2);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-control);
  font-size: var(--qnv-text-label);
  line-height: 1.45;
}

.qnv-notice .qnv-icon { width: 16px; height: 16px; margin-top: 1px; }
.qnv-notice--warning { color: var(--qnv-warning); border-color: var(--qnv-warning-line); background: var(--qnv-warning-soft); }
.qnv-notice--success { color: var(--qnv-success); border-color: var(--qnv-success-line); background: var(--qnv-success-soft); }

/* ── Шаги, итоги, подписи ─────────────────────────────────────────── */

.qnv-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 6px;
}

.qnv-stepper__bar {
  height: 3px;
  border-radius: var(--qnv-radius-pill);
  background: var(--qnv-border-strong);
}

.qnv-stepper__bar--done { background: var(--qnv-accent); }
.qnv-stepper__label { margin-left: 6px; color: var(--qnv-text-muted); font-size: var(--qnv-text-caption); white-space: nowrap; }

.qnv-summary { border-top: 1px solid var(--qnv-border); }

.qnv-summary__row {
  min-height: 38px;
  padding: 9px 0;
  display: flex;
  align-items: flex-start;
  gap: var(--qnv-space-3);
  border-bottom: 1px solid var(--qnv-border);
  font-size: var(--qnv-text-sm);
}

.qnv-summary__row span:first-child { color: var(--qnv-text-muted); }
.qnv-summary__row span:last-child {
  margin-left: auto;
  color: var(--qnv-text-secondary);
  font-family: var(--qnv-font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.qnv-summary__row--total { border-bottom: 0; font-weight: 600; }
.qnv-summary__row--total span:first-child,
.qnv-summary__row--total span:last-child { color: var(--qnv-text); }

/* Пара подписей: один классический алгоритм и один постквантовый.
   Оба обязательны, выбора между ними нет. */
.qnv-dual-signature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--qnv-space-2);
}

.qnv-signature-chip {
  min-height: 44px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: var(--qnv-space-2);
  border: 1px solid var(--qnv-border);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-surface-sunken);
}

.qnv-signature-chip .qnv-icon { width: 15px; height: 15px; color: var(--qnv-success); }
.qnv-signature-chip span { display: block; min-width: 0; }
.qnv-signature-chip b { display: block; font-size: var(--qnv-text-label); font-weight: 600; }
.qnv-signature-chip small { display: block; margin-top: 1px; color: var(--qnv-text-muted); font-size: 10px; }

.qnv-qhy-caption {
  margin: var(--qnv-space-2) 0 0;
  color: var(--qnv-text-muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

/* ── QR ───────────────────────────────────────────────────────────── */

.qnv-qr-placeholder {
  width: 184px;
  height: 184px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--qnv-text-secondary);
  border: 1px dashed var(--qnv-border-strong);
  border-radius: var(--qnv-radius-panel);
  background: var(--qnv-surface-sunken);
  box-shadow: var(--qnv-shadow-raised);
}

.qnv-qr-placeholder__mark { width: 54px; height: 54px; margin-bottom: 5px; }
.qnv-qr-placeholder strong { font-size: var(--qnv-text-sm); }
.qnv-qr-placeholder small { color: var(--qnv-text-muted); font-size: var(--qnv-text-caption); }

/* Review-copy only: the rear hero screen communicates a future encrypted
   message attachment, so it needs an explicit envelope/lock cue rather than
   pretending to show a working QR or payment payload. */
.qnv-message-placeholder__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  color: var(--qnv-accent);
  filter: drop-shadow(0 5px 10px var(--qnv-accent-soft));
}

.qnv-future-field {
  margin-top: var(--qnv-space-3);
  padding: var(--qnv-space-3);
  display: flex;
  align-items: center;
  gap: var(--qnv-space-3);
  color: var(--qnv-text-muted);
  border: 1px dashed var(--qnv-border-strong);
  border-radius: var(--qnv-radius-control);
  background: var(--qnv-surface-sunken);
}

.qnv-future-field > span:first-child { min-width: 0; }
.qnv-future-field b,
.qnv-future-field small { display: block; }
.qnv-future-field b { color: var(--qnv-text-secondary); font-size: var(--qnv-text-label); }
.qnv-future-field small { margin-top: 3px; font-size: 10px; letter-spacing: .04em; }
.qnv-future-field .qnv-badge { margin-left: auto; }

.qnv-notice--spaced,
.qnv-summary--spaced,
.qnv-dual-signature--spaced { margin-top: var(--qnv-space-3); }

.qnv-copy-state { color: var(--qnv-success); }

@media (max-width: 389px) {
  .qnv-phone { width: 100%; height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .qnv-bottom-nav { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
