/* ===== NKG_TGLINK (17 октября 2026): окно привязки Telegram и код в «Забыли пароль?» =====
   Цвета берутся из переменных заставки (--w-*), если вход в стиле заставки,
   иначе из стиля магазина (витрина красит заголовки и кнопки сама). */
.nkg-tg-pane[hidden], .nkg-tgpv-pane[hidden] { display: none !important; }

.nkg-tg-ic {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 6px auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--w-title, currentColor);
  background: var(--w-surface, rgba(128, 128, 128, .14));
  border: 1px solid var(--w-line, rgba(128, 128, 128, .28));
}
.nkg-tg-ic svg { width: 30px; height: 30px; display: block; }
#nkgTgStep, #nkgTgResetStep { text-align: center; }
#nkgTgStep .nkg-tg-p, #nkgTgResetStep .nkg-tgr-p { line-height: 1.5; }
#nkgTgResetStep .nkg-tgr-p b { font-weight: 700; word-break: break-all; }

#authModal .nkg-tg-code {
  text-align: center !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: .34em !important;
  padding-left: .34em !important;
  font-variant-numeric: tabular-nums;
  width: 100%; box-sizing: border-box;
}
#authModal .nkg-tg-code::placeholder {
  letter-spacing: normal; font-size: 16px; font-weight: 500;
}
#nkgTgResetStep .nkg-tgr-pw { margin-top: 10px; }
.nkg-regway { display: flex; gap: 8px; margin: 4px auto 16px; max-width: 360px; width: 100%; }
.nkg-regway-b { flex: 1; padding: 11px 8px; border-radius: 12px; border: 1.5px solid rgba(127,127,127,.35); background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; opacity: .7; }
.nkg-regway-b.is-on { opacity: 1; border-color: currentColor; }
.nkg-ph-consent { align-items: flex-start; gap: 8px; margin: 12px 0 4px; text-align: left; font-size: 12px; line-height: 1.5; cursor: pointer; }
.nkg-ph-consent input { width: 20px; height: 20px; min-width: 20px; margin: 0; }
.nkg-ph-consent a { color: inherit; text-decoration: underline; }
#nkgPhStep .nkg-ph-consent-t { color: var(--w-muted, inherit); }

.nkg-tg-note {
  margin: 14px auto 0; max-width: 300px;
  font-size: 13px; line-height: 1.45; text-align: center;
  color: var(--w-muted, inherit); opacity: .85;
}
#authModal:not(.nkw-auth) .nkg-tg-note { opacity: .6; }

.nkg-tg-link {
  display: block; text-align: center;
  margin: 10px 0 0; padding: 7px 6px;
  font-size: 15px; font-weight: 600; line-height: 1.35;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; opacity: .85;
  color: var(--w-title, inherit);
  -webkit-tap-highlight-color: transparent;
}
.nkg-tg-link.is-off { opacity: .45; pointer-events: none; text-decoration: none; }
.nkg-tg-link.nkg-tg-web { font-size: 13.5px; font-weight: 500; opacity: .7; }
#nkgTgStep .nkg-tg-err, #nkgTgResetStep .nkg-tg-err { margin-top: 10px; }

.nkg-tg-or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 6px; font-size: 13px; opacity: .6;
  color: var(--w-muted, inherit);
}
.nkg-tg-or::before, .nkg-tg-or::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .35; }
#nkgTgResetBtn { width: 100%; }

/* превью в админке (раздел «Бонусы», вкладка Telegram) */
.nkg-tgpv .nkg-tgpv-body { text-align: center; }
.nkg-tgpv .nkg-tg-ic { margin-top: 18px; }
.nkg-tgpv .nkw-apv-h { margin-top: 0; }
.nkg-tgpv .nkg-tgpv-pane { margin-top: auto; display: flex; flex-direction: column; }
.nkg-tgpv .nkg-tgpv-code {
  height: 60px; margin: 0 0 14px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--w-surface, #fff); border: 1.5px solid var(--w-line, #ddd);
  color: var(--w-ink, #222); font-family: var(--w-bf, inherit);
  font-size: 26px; font-weight: 700; letter-spacing: .34em; padding-left: .34em;
  font-variant-numeric: tabular-nums;
}
.nkg-tgpv .nkg-tg-note { margin-top: 12px; }
.nkw-authpv.is-plain.nkg-tgpv .nkg-tg-ic { color: #222; }

/* ===== NKG_PHONE_LOGIN (19 октября 2026): вход по номеру телефона ===== */
#nkgPhStep { text-align: center; }
#nkgPhStep .nkg-ph-p { line-height: 1.5; }
#nkgPhStep .nkg-ph-p b { font-weight: 700; }
.nkg-ph-row { position: relative; display: flex; align-items: center; }
#authModal .nkg-ph-in { width: 100%; box-sizing: border-box; font-size: 18px !important; font-variant-numeric: tabular-nums; }
#nkgPhStep .nkg-ph-open { margin-bottom: 12px; }
#nkgPhStep .nkg-ph-err { margin-top: 10px; }
.nkg-ph-entry { margin-top: 12px !important; font-weight: 700 !important; width: 100%; }
