/*
 * /touch-n-go/ — вывод USDT на Touch ’n Go eWallet, Малайзия (seo-1108, зона payouts-2).
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"].
 * Приставка tng-. Телефон: 899 / 719 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

.tng .r-wrap :is(h1, h2) { text-wrap: balance; }
.tng-top { padding-top: 12px; }
.tng-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tng bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.tng .r-btn svg { flex: none; }

/* ══ Первый экран: форма выплаты ══════════════════════════════════════════ */
.tng-hero { grid-template-columns: 1.15fr 0.85fr; }
.tng-chips { padding-top: 4px; }
.tng-hero-art { min-width: 0; }
.tng-ph {
  width: 100%; max-width: 340px; box-sizing: border-box; padding: 20px; border-radius: 28px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.tng-ph-top { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.tng-ph-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-green-tint); color: var(--r-green);
}
.tng-ph-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tng-ph-tt b { font-size: 15px; font-weight: 800; }
.tng-ph-tt > span { font-size: 12px; color: var(--r-muted); }
.tng-ph-f {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3);
}
.tng-ph-f span { font-size: 11.5px; font-weight: 700; color: var(--r-muted); }
.tng-ph-f b { font-size: 15px; font-weight: 800; color: var(--r-text); }
.tng-ph-f bdi { text-align: start; }
.tng-ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--r-muted); }
.tng-ph-row b { color: var(--r-text); font-weight: 800; }
.tng-ph-total { padding-top: 12px; border-top: 1px dashed var(--r-line-3); color: var(--r-text); font-weight: 700; }
.tng-ph-total b { font-size: 18px; color: var(--r-green); }

/* ══ Короткий ответ + три цифры ═══════════════════════════════════════════ */
.tng-ans { padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.tng-ans-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tng-ans-q { margin: 0; font-size: clamp(22px, 1.2vw + 14px, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--r-text); }
.tng-ans-a { margin: 0; font-size: 17px; line-height: 1.65; color: var(--r-text-2); max-width: 760px; }
.tng-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(96px, auto)); gap: 10px; }
.tng-stat {
  display: flex; flex-direction: column-reverse; gap: 6px; padding: 16px 18px; border-radius: 18px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-2); min-width: 0;
}
/* qa 08.11: длинные немецкие подписи («Auszahlungswährung») на 390 px — переносом, а не наездом на соседа. */
.tng-stat dt { font-size: 12px; font-weight: 700; color: var(--r-muted); line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.tng-stat dd { margin: 0; font-size: 26px; font-weight: 800; color: var(--r-accent); line-height: 1; }

/* ══ Поля формы ═══════════════════════════════════════════════════════════ */
.tng-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tng-field { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tng-field-top { display: flex; justify-content: space-between; align-items: center; }
.tng-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.tng-field-k { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-accent); }
.tng-field-t { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--r-text); }
.tng-field-d { margin: 0; font-size: 15px; color: var(--r-text-2); line-height: 1.6; }
.tng-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tng-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--r-muted); line-height: 1.5; }
.tng-rule-i {
  flex: none; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-green-tint); color: var(--r-green);
}
.tng-ex {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding: 14px 16px;
  border-radius: 14px; background: var(--r-fill-1); border: 1px dashed var(--r-line-3); font-size: 14px;
}
.tng-ex-l { font-size: 12px; font-weight: 800; color: var(--r-muted); }
.tng-ex-in { color: var(--r-text-2); font-weight: 700; }
.tng-ex-out { color: var(--r-green); font-weight: 800; }
.tng-ex .tng-arr { color: var(--r-faint); }
[dir="rtl"] .tng-arr { transform: scaleX(-1); }

/* ══ Проверка номера и калькулятор ════════════════════════════════════════ */
.tng-chk, .tng-calc { display: grid; grid-template-columns: 1fr 1fr; }
.tng-chk-form, .tng-form { padding: 32px; display: flex; flex-direction: column; gap: 22px; justify-content: center; min-width: 0; }
.tng-f { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tng-f-l { padding: 0; font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.tng-in {
  width: 100%; box-sizing: border-box; height: 56px; padding: 0 16px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text);
  font: inherit; font-size: 19px; font-weight: 800; text-align: start; direction: ltr;
}
[dir="rtl"] .tng-in { text-align: end; }
.tng-in--big { height: 58px; font-size: 22px; }
.tng-in::placeholder { color: var(--r-faint); font-weight: 600; }
.tng-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.tng-in[aria-invalid="true"] { border-color: var(--r-red); }
.tng-seg { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); }
.tng-seg label { flex: 1 1 0; position: relative; min-width: 0; }
.tng-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tng-seg span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px;
  font-size: 15px; font-weight: 800; color: var(--r-muted); cursor: pointer;
}
.tng-seg input:checked + span { background: var(--r-brand); color: #FFFFFF; }
.tng-seg input:focus-visible + span { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.tng-chk-out, .tng-out {
  padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0;
  background: var(--r-fill-1); border-inline-start: 1px solid var(--r-line-2);
}
.tng-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.tng-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; }
.tng-out-total { padding-top: 14px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.tng-out-total b { font-size: clamp(22px, 2vw + 10px, 30px); color: var(--r-green); }
.tng-msg { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.tng-msg.is-ok { color: var(--r-green); }
.tng-msg.is-warn { color: var(--r-red); }
.tng-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Таблица способов Малайзии ════════════════════════════════════════════ */
.tng-tbl-wrap {
  overflow-x: auto; border-radius: 24px; border: 1px solid var(--r-line); background: var(--r-surface);
  box-shadow: var(--r-block-shadow); -webkit-overflow-scrolling: touch;
}
.tng-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.tng-tbl { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tng-tbl :is(th, td) { padding: 16px 22px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.tng-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.tng-tbl thead th { font-size: 14px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.tng-tbl tbody th { width: 18%; font-size: 14px; font-weight: 800; color: var(--r-muted); }
.tng-tbl td { color: var(--r-text-2); }
.tng-tbl thead .tng-th-on { color: var(--r-green); background: var(--r-green-tint); }
.tng-tbl .tng-td-on { color: var(--r-text); font-weight: 700; background: var(--r-green-tint); }
.tng-foot { margin: -8px 0 0; font-size: 13.5px; color: var(--r-faint); line-height: 1.6; }
.tng-foot a { color: var(--r-link); font-weight: 700; text-decoration: none; }
.tng-foot a:hover { color: var(--r-link-hover); text-decoration: underline; }

/* ══ Что после отправки: вертикальная лента ═══════════════════════════════ */
.tng-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.tng-tl-i {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px;
  background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0;
}
.tng-tl-dot {
  width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.tng-tl--ok .tng-tl-dot { background: var(--r-green-tint); color: var(--r-green); }
.tng-tl--no { border-color: var(--r-red-line); }
.tng-tl--no .tng-tl-dot { background: var(--r-red-line); color: var(--r-red); }
.tng-tl-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tng-tl-t { font-size: 18px; font-weight: 800; color: var(--r-text); }
.tng-tl-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Можно / нельзя ═══════════════════════════════════════════════════════ */
.tng-cc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tng-cc-col { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tng-cc-col--yes { border-top: 3px solid var(--r-green); }
.tng-cc-col--no { border-top: 3px solid var(--r-red); }
.tng-cc-h { margin: 0; font-size: 22px; font-weight: 800; color: var(--r-text); }
.tng-cc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tng-cc-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--r-text-2); line-height: 1.55; }
.tng-cc-i { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 99px; display: grid; place-items: center; }
.tng-cc-col--yes .tng-cc-i { background: var(--r-green-tint); color: var(--r-green); }
.tng-cc-col--no .tng-cc-i { background: var(--r-red-line); color: var(--r-red); }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.tng-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.tng-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.tng-qa-i summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.4;
}
.tng-qa-i summary::-webkit-details-marker { display: none; }
.tng-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.tng-qa-ic {
  flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-fill-3); color: var(--r-text-2); transition: transform .2s ease;
}
.tng-qa-i[open] .tng-qa-ic { transform: rotate(45deg); }
.tng-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

/* ══ Блог и связанные ═════════════════════════════════════════════════════ */
.tng-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tng-link {
  position: relative; padding: 22px; padding-inline-end: 52px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--r-text); min-width: 0; transition: border-color .16s ease;
}
.tng-link:hover { border-color: var(--r-brand-2); }
.tng-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.tng-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.tng-link .tng-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
.sx-next.tng-rel { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

/* ══ Финальный призыв ═════════════════════════════════════════════════════ */
.tng-final { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tng-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; min-width: 0; }
.tng-final .r-btns { position: relative; flex: none; }

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .tng-tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tng-ans { grid-template-columns: 1fr; gap: 20px; }
  .tng-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .tng-hero { grid-template-columns: 1fr; }
  .tng-hero-art { justify-content: flex-start; }
  .tng-fields { grid-template-columns: 1fr; }
  .tng-chk, .tng-calc { grid-template-columns: 1fr; }
  .tng-chk-out, .tng-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .tng-cc { grid-template-columns: 1fr; }
  .tng-links { grid-template-columns: 1fr; }
  .tng-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .tng-ph { max-width: none; }
  .tng-ph.r-float { animation: none; }
  .tng-ans { padding: 22px 20px; }
  .tng-ans-a { font-size: 16px; }
  .tng-stat { padding: 12px 12px; }
  .tng-stat dd { font-size: 21px; }
  .tng-field, .tng-cc-col { padding: 22px 20px; }
  .tng-tl { grid-template-columns: 1fr; }
  .tng-tl-i { flex-direction: row; padding: 18px; }
  .tng-tl-dot { flex: none; }
  .tng-chk-form, .tng-form, .tng-chk-out, .tng-out { padding: 22px 20px; }
  .tng-out-btn, .tng-final .r-btns, .tng-final .r-btn { align-self: stretch; width: 100%; }
  .tng .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  .tng-tbl :is(th, td) { padding: 14px 16px; font-size: 14px; }
  .tng-final { padding: 28px 20px; }
  .tng-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .tng-qa-i p { padding: 0 18px 18px; }
}
@media (max-width: 379px) {
  main .tng .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
@media (max-width: 359px) {
  .tng-ph { padding: 16px; }
  .tng-ph-row { font-size: 13px; }
  .tng-stats { grid-template-columns: 1fr; }
  .tng-stat { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .tng-chk-form, .tng-form, .tng-chk-out, .tng-out { padding: 18px 16px; }
  .tng-in, .tng-in--big { font-size: 17px; }
  .tng .r-chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 12px; }
}
