/* ==========================================================================
   7KS — How to top up (SafePay) guide
   A phone acts out the five steps members kept missing on SafePay's page.
   px only: response.css rescales rem on phones. Uses the .lm-member tokens.
   ========================================================================== */

.tg-layout { display: grid; gap: 24px; align-items: start; }
.tg-layout__main { display: grid; gap: 18px; min-width: 0; container-type: inline-size; }
.tg-aside { display: none; }
/* `hidden` must beat the launcher's and aside's own display at every width. */
.tg-aside[hidden], .tg-inline[hidden], .lm-member .tg-launch[hidden], .lm-member .tg-layout .tg-launch[hidden] { display: none; }
/* Narrow desktop and phones: the guide stays open above the form (no tap to see it). */
.tg-inline .tg-card { padding: 16px 14px 12px; border-radius: 18px; }
.lm-member--m .tg-inline { margin: 0 0 12px; }

@media (min-width: 1180px) {
  .tg-layout { grid-template-columns: minmax(0, 1fr) 348px; gap: 28px; }
  .tg-aside { display: block; position: sticky; top: 96px; }
  .lm-member .tg-layout .tg-launch, .tg-layout .tg-inline { display: none; }
  .tg-layout--solo { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Guide card (wide desktop) ---------- */

.tg-card,
.tg-dialog {
  --tg-gold: #d9c298;
  --tg-ivory: #f4f0e7;
  color: var(--tg-ivory);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(186, 36, 56, .34), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(185, 146, 90, .16), transparent 70%),
    linear-gradient(165deg, #151c3d, #080e22 62%);
}
.tg-card {
  display: grid;
  gap: 12px;
  padding: 20px 20px 14px;
  border: 1px solid rgba(185, 146, 90, .42);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(8, 14, 34, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.tg-card__head { display: grid; gap: 6px; }
.tg-card__eyebrow {
  color: var(--tg-gold);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tg-card__title {
  margin: 0;
  color: #fff;
  font: 600 21px/1.25 var(--lm-serif, Georgia, serif);
  text-wrap: balance;
}
html:lang(bn) .tg-card__title { font-family: 'Noto Sans Bengali', var(--lm-sans, sans-serif); font-weight: 700; font-size: 19px; line-height: 1.4; }
html:lang(bn) .tg-card__eyebrow { letter-spacing: 0; }

/* ---------- Launcher (narrow desktop + phones) ---------- */

.lm-member .tg-launch {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(185, 146, 90, .45);
  border-radius: 18px;
  color: #f4f0e7;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(186, 36, 56, .38), transparent 60%),
    linear-gradient(160deg, #151c3d, #080e22);
  box-shadow: 0 16px 36px rgba(8, 14, 34, .22);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .18s var(--ks-ease, ease), box-shadow .18s ease;
}
.lm-member .tg-launch:hover { transform: translateY(-1px); box-shadow: 0 20px 40px rgba(8, 14, 34, .28); }
.lm-member .tg-launch:focus-visible { outline: 3px solid #d9c298; outline-offset: 3px; }
.tg-launch__phone {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  width: 34px;
  height: 58px;
  padding: 10px 6px;
  border-radius: 9px;
  background: #f4f0e7;
  box-shadow: 0 0 0 3px #05081a, 0 0 0 4px rgba(217, 194, 152, .55), 0 8px 18px rgba(0, 0, 0, .35);
}
.tg-launch__phone i { display: block; height: 5px; border-radius: 3px; background: rgba(8, 14, 34, .16); }
.tg-launch__phone i:nth-child(1) { background: linear-gradient(90deg, #13804e, #0b5a35); }
.tg-launch__phone i:nth-child(2) { width: 70%; background: #ed1c24; box-shadow: 0 0 0 0 rgba(217, 166, 65, 0); animation: tg-launch-word 3.2s ease-in-out 3; }
.tg-launch__phone i:nth-child(3) { height: 9px; border-radius: 5px; background: #ba2438; animation: tg-launch-tap 3.2s ease-in-out 3; }
@keyframes tg-launch-word { 0%, 30% { width: 30%; box-shadow: 0 0 0 0 rgba(217, 166, 65, 0); } 50%, 80% { width: 70%; box-shadow: 0 0 0 2px #d9a641; } 100% { width: 30%; box-shadow: 0 0 0 0 rgba(217, 166, 65, 0); } }
@keyframes tg-launch-tap { 0%, 82% { scale: 1; } 88% { scale: .9; filter: brightness(1.3); } 94%, 100% { scale: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .tg-launch__phone i { animation: none; } }
.tg-launch__text { display: grid; gap: 3px; min-width: 0; }
.tg-launch__text b { color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.tg-launch__text small { color: rgba(244, 240, 231, .72); font-size: 12.5px; line-height: 1.45; }
.tg-launch__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  color: #080e22;
  background: linear-gradient(180deg, #e7d3a6, #c9a66b);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.tg-launch__cta svg { width: 14px; height: 14px; fill: currentColor; }
.tg-launch__chips { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.lm-member .tg-launch__cta { grid-row: 1; grid-column: 3; }
.tg-launch__short { display: none; }
/* Stack the button under the text when the launcher itself is narrow (phones, and the
   tablet column beside the member sidebar). */
@media (max-width: 420px) {
  .lm-member .tg-launch { grid-template-columns: 34px minmax(0, 1fr); row-gap: 12px; }
  .lm-member .tg-launch__cta { grid-row: auto; grid-column: 1 / -1; justify-content: center; }
  .tg-launch__chips { grid-column: 1 / -1; margin-top: 0; }
}
@container (max-width: 460px) {
  .lm-member .tg-launch { grid-template-columns: 34px minmax(0, 1fr); row-gap: 12px; }
  .lm-member .tg-launch__cta { grid-row: auto; grid-column: 1 / -1; justify-content: center; }
  .tg-launch__chips { grid-column: 1 / -1; margin-top: 0; }
  .tg-launch__long, .tg-launch__text small { display: none; }
  .tg-launch__short { display: block; }
}
/* Phones: one compact bar, so the deposit button stays above the fold. */
.lm-member--m .tg-launch {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0 0 10px;
  padding: 9px 10px 9px 14px;
  border-radius: 16px;
}
.lm-member--m .tg-launch__phone { width: 24px; height: 42px; padding: 7px 4px; gap: 3px; border-radius: 7px; }
.lm-member--m .tg-launch__phone i { height: 4px; }
.lm-member--m .tg-launch__phone i:nth-child(3) { height: 7px; }
.lm-member--m .tg-launch__long, .lm-member--m .tg-launch__text small { display: none; }
.lm-member--m .tg-launch__short { display: block; }
.lm-member--m .tg-launch .tg-launch__cta { grid-row: 1; grid-column: 3; min-height: 44px; padding: 0 12px 0 14px; }
/* Three-step preview under the launcher text (phones and the narrow desktop column). */
.tg-launch__chips i {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  color: #f4f0e7;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.tg-launch__chips i b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #080e22; background: #d9c298; font-size: 11px; }
.lm-member--m .tg-launch__chips { grid-column: 1 / -1; margin-top: 0; }
.lm-member--m .tg-launch { row-gap: 8px; }
/* Phones: slimmer method rows so the deposit button stays above the fold with the launcher on top. */
.lm-member--m .lm-method__card { padding: 9px 16px; }
.lm-member--m .lm-methods { gap: 10px; }
.lm-member--m .lm-method-hint { font-size: 14px; }

/* ---------- Dialog ---------- */

.tg-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: 100vw;
  height: min(900px, calc(100dvh - 32px));
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(185, 146, 90, .45);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.tg-dialog::backdrop { background: rgba(4, 7, 18, .74); backdrop-filter: blur(6px); }
.tg-dialog[open] { animation: tg-dialog-in .32s var(--ks-ease, ease) both; }
@keyframes tg-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
html.tg-lock { overflow: hidden; }
.tg-dialog__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 18px 18px max(16px, env(safe-area-inset-bottom));
}
.tg-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tg-dialog__head > div { display: grid; gap: 4px; min-width: 0; }
.tg-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 240, 231, .22);
  border-radius: 50%;
  color: #f4f0e7;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.tg-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tg-close:hover { background: rgba(255, 255, 255, .12); }
.tg-close:focus-visible { outline: 3px solid #d9c298; outline-offset: 2px; }
.tg-dialog .tg-player { flex: 1; min-height: 0; grid-template-rows: minmax(220px, 1fr) auto auto; }
.tg-dialog .tg-stage { height: auto; min-height: 0; }
@media (max-width: 560px) {
  .tg-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .tg-dialog__inner { padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); gap: 10px; }
}

/* ---------- Player ---------- */

.tg-player { display: grid; gap: 14px; --tg-brand-1: #f7941d; --tg-brand-2: #ed1c24; --tg-brand-ink: #ed1c24; --tg-brand-soft: #fff4ec; }
.tg-player[data-tg-wallet="bkash"] { --tg-brand-1: #e2136e; --tg-brand-2: #b80d58; --tg-brand-ink: #d1105f; --tg-brand-soft: #fdeef5; }
.tg-stage {
  position: relative;
  height: 396px;
  display: grid;
  justify-items: center;
  align-items: start;
  overflow: hidden;
  border-radius: 18px;
}
.tg-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 50% 48%, rgba(217, 194, 152, .26), rgba(186, 36, 56, .10) 58%, transparent 78%),
    repeating-radial-gradient(circle at 50% 48%, rgba(217, 194, 152, .10) 0 1px, transparent 1px 44px);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 48%, #000 30%, transparent 72%);
  pointer-events: none;
}
.tg-stage__tag {
  flex: none;
  padding: 3px 10px;
  border: 1px solid rgba(217, 194, 152, .5);
  border-radius: 999px;
  color: #d9c298;
  background: rgba(8, 14, 34, .6);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tg-phone {
  position: relative;
  width: 236px;
  height: 488px;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(150deg, #262d52, #05081a 55%, #121836);
  box-shadow:
    inset 0 0 0 1px rgba(217, 194, 152, .45),
    inset 0 0 0 3px #05081a,
    0 32px 60px rgba(0, 0, 0, .5),
    0 10px 20px rgba(0, 0, 0, .3);
  transform: scale(var(--tg-scale, 1));
  transform-origin: top center;
}
.tg-phone__island {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 9;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  border-radius: 10px;
  background: #05070f;
}
.tg-screen {
  position: relative;
  width: 220px;
  height: 472px;
  overflow: hidden;
  border-radius: 32px;
  background: #f4f0e7;
  isolation: isolate;
  color: #232945;
  font-family: var(--lm-sans, 'Inter', Arial, sans-serif);
  font-size: 12px;
  line-height: 1.38;
}
.tg-screen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tg-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 6px 24px 0;
  font-size: 11px;
  font-weight: 700;
}
.tg-status__icons { display: flex; align-items: flex-end; gap: 2px; }
.tg-status__icons b { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.tg-status__icons b:nth-child(1) { height: 5px; }
.tg-status__icons b:nth-child(2) { height: 7px; }
.tg-status__icons b:nth-child(3) { width: 16px; height: 8px; margin-left: 4px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 0); }

.tg-scene { position: absolute; inset: 0; visibility: hidden; }
.tg-scene.is-on { visibility: visible; animation: tg-scene-in .3s ease both; }
@keyframes tg-scene-in { from { opacity: 0; } }
.tg-part {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 7KS app screens */
.tg-app { padding: 38px 14px 14px; background: #f4f0e7; color: #232945; }
.tg-app .tg-status { color: #080e22; }
.tg-app__bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgba(8, 14, 34, .12); }
.tg-app__bar small { color: #5c6172; font-size: 12px; font-weight: 700; }
.tg-logo { color: #ba2438; font: 700 21px/1 var(--lm-serif, Georgia, serif); letter-spacing: -.02em; }
.tg-logo span { color: #080e22; }
.tg-label { color: #5c6172; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.tg-label em { color: #d61f2c; font-style: normal; }
.tg-hint { margin-top: -3px; color: #5c6172; font-size: 10.5px; }
.tg-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(8, 14, 34, .2);
  border-radius: 11px;
  background: #fbfaf6;
  color: #080e22;
  font-size: 15px;
  font-weight: 700;
}
.tg-type { display: inline-block; overflow: hidden; white-space: nowrap; }
.tg-caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; background: #ba2438; opacity: 0; }
.tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.tg-btn svg { width: 13px; height: 13px; }
.tg-btn--ruby { background: #ba2438; box-shadow: 0 6px 14px rgba(186, 36, 56, .28); }
.tg-ghostline { display: block; height: 8px; margin-top: 4px; border-radius: 4px; background: rgba(8, 14, 34, .07); }
.tg-ghostline--short { width: 62%; margin-top: 0; }

.tg-rows { display: grid; gap: 6px; margin: -2px 0 2px; }
.tg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(8, 14, 34, .18);
  border-radius: 9px;
  background: #fbfaf6;
  color: #080e22;
  font: 600 12.5px/1 var(--lm-serif, Georgia, serif);
  white-space: nowrap;
}
.tg-row i { flex: none; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, #f7941d, #ed1c24); }
.tg-row--bkash i { background: #e2136e; }
.tg-row--rocket i { background: #8c3494; }
.tg-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(8, 14, 34, .18);
  border-radius: 13px;
  background: #fbfaf6;
  color: #080e22;
  font: 600 15px/1 var(--lm-serif, Georgia, serif);
}
.tg-brand i { width: 22px; height: 22px; border-radius: 7px; }
.tg-brand--nagad i { background: linear-gradient(135deg, #f7941d, #ed1c24); }
.tg-brand--bkash i { background: #e2136e; }

.tg-wait {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 8px;
  margin: 8px 0 4px;
  padding: 12px;
  border-left: 3px solid #ba2438;
  border-radius: 0 12px 12px 0;
  background: rgba(186, 36, 56, .07);
}
.tg-wait span { font-size: 12px; font-weight: 700; color: #232945; }
.tg-wait b { grid-column: 2; color: #080e22; font: 600 17px/1.1 var(--lm-serif, Georgia, serif); }
.tg-wait__dot { width: 8px; height: 8px; border-radius: 50%; background: #e0a100; box-shadow: 0 0 0 0 rgba(224, 161, 0, .6); }
.tg-scene.is-on .tg-wait__dot { animation: tg-dot 1.6s ease-out infinite; }
@keyframes tg-dot { 70%, 100% { box-shadow: 0 0 0 8px rgba(224, 161, 0, 0); } }

/* SafePay-style payment page (green header, as members see it) */
.tg-pay { background: #fff; color: #1d2433; }
.tg-pay .tg-status { color: #fff; }
.tg-pay__head {
  display: grid;
  gap: 2px;
  padding: 38px 14px 12px;
  color: #fff;
  background: linear-gradient(160deg, #13804e, #0b5a35);
}
.tg-pay__head b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.tg-pay__head small { color: rgba(255, 255, 255, .88); font-size: 11.5px; font-weight: 600; }
.tg-pay__body { display: flex; flex-direction: column; gap: 7px; padding: 10px 14px 14px; }
.tg-pay__wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--tg-brand-1), var(--tg-brand-2));
  font-size: 13px;
  font-weight: 800;
}
.tg-pay__wallet i { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px var(--tg-brand-1); }
.tg-pay__only { margin: 0; font-size: 12px; line-height: 1.5; color: #1d2433; }
.tg-red { position: relative; margin: 0 3px; padding: 0 3px; border-radius: 4px; color: #d61f2c; font-weight: 800; white-space: nowrap; }
.tg-pay__number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  background: #f2f4f6;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tg-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #13804e; }
.tg-icon svg { width: 17px; height: 17px; }
.tg-toast {
  position: absolute;
  right: 40px;
  top: 50%;
  margin-top: -10px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: #1d2433;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  white-space: nowrap;
}
.tg-pay__menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 10px; background: #f6f7f9; }
.tg-pay__menu span { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 8px; color: var(--tg-brand-ink); background: #fff; text-align: center; }
.tg-pay__menu small { color: #5c6172; font-size: 9.5px; font-weight: 700; line-height: 1.15; }
.tg-pay__trx { display: grid; gap: 5px; margin-top: 2px; }
.tg-btn--pay { height: 40px; border-radius: 10px; color: #fff; background: #b8bec7; }

/* Wallet app (Nagad-style) */
.tg-wallet { background: #fff; color: #1d2433; }
.tg-wallet .tg-status { color: #fff; }
.tg-wallet__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 42px 14px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--tg-brand-1), var(--tg-brand-2));
  font-size: 17px;
}
.tg-wallet__bar--slim { padding-bottom: 14px; font-size: 15px; }
.tg-wallet__mark { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 6px var(--tg-brand-1); }
.tg-wallet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 14px 4px; }
.tg-tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 6px 13px;
  border-radius: 13px;
  color: var(--tg-brand-ink);
  background: var(--tg-brand-soft);
  text-align: center;
}
.tg-tile svg { width: 24px; height: 24px; }
.tg-tile small { color: #1d2433; font-size: 12px; font-weight: 700; line-height: 1.2; }
.tg-wallet .tg-ghostline { margin: 6px 14px 0; }
.tg-wallet .tg-ghostline--short { margin-top: 2px; }
.tg-wallet__form { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.tg-pin { display: flex; gap: 12px; height: 34px; align-items: center; padding: 0 10px; border-bottom: 1px solid rgba(8, 14, 34, .2); }
.tg-pin i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #c5c9d1; }
.tg-btn--brand { align-self: flex-end; width: 46px; height: 46px; margin-top: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--tg-brand-1), var(--tg-brand-2)); box-shadow: 0 8px 16px rgba(8, 14, 34, .22); }
.tg-btn--brand svg { width: 18px; height: 18px; }
.tg-done { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 84px 16px 16px; text-align: center; }
.tg-done__check { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: #fff; background: #13804e; box-shadow: 0 0 0 8px rgba(19, 128, 78, .12); }
.tg-done__check svg { width: 30px; height: 30px; stroke-width: 2.6; }
.tg-done b { font-size: 16px; color: #1d2433; }
.tg-done__amount { color: #1d2433; font-size: 24px; font-weight: 800; }
.tg-trx {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 8px 8px 12px;
  border: 1px dashed rgba(19, 128, 78, .5);
  border-radius: 10px;
  background: #f1f8f4;
  text-align: left;
}
.tg-trx span { color: #5c6172; font-size: 11px; font-weight: 700; }
.tg-trx code { color: #0b5a35; font: 800 13px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .04em; }
.tg-input--trx { border: 1.5px solid #e04a4a; background: #fff; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 14px; letter-spacing: .04em; }
.tg-paste { opacity: 0; }
.tg-check4 { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 11px; color: #0b5a35; background: #eaf6ef; font-size: 12px; font-weight: 700; opacity: 0; }
.tg-spin { flex: none; width: 16px; height: 16px; border: 2px solid rgba(19, 128, 78, .25); border-top-color: #13804e; border-radius: 50%; }

/* 7KS wallet card */
.tg-purse {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 20px 16px 22px;
  overflow: hidden;
  border-radius: 18px;
  color: #f4f0e7;
  background: radial-gradient(120% 140% at 100% 0%, rgba(186, 36, 56, .45), transparent 60%), linear-gradient(160deg, #1a2148, #080e22);
  box-shadow: 0 14px 30px rgba(8, 14, 34, .3);
}
.tg-purse small { color: rgba(244, 240, 231, .72); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.tg-purse__amount { position: relative; display: block; height: 34px; overflow: hidden; font: 600 28px/34px var(--lm-serif, Georgia, serif); }
.tg-purse__amount span { position: absolute; left: 0; top: 0; }
.tg-s5__after { color: #f0dcae; translate: 0 36px; }
.tg-purse__sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(240, 220, 174, .35) 50%, transparent 65%); translate: -120% 0; }
.tg-spark { position: absolute; width: 7px; height: 7px; background: #f0dcae; rotate: 45deg; opacity: 0; }
.tg-spark--a { right: 26px; top: 20px; }
.tg-spark--b { right: 54px; top: 44px; width: 5px; height: 5px; }
.tg-spark--c { right: 18px; bottom: 22px; width: 4px; height: 4px; }
.tg-added {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 4px 0 6px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  color: #1f6b45;
  background: rgba(46, 125, 82, .12);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
}
.tg-ledger { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(8, 14, 34, .1); border-radius: 13px; background: #fbfaf6; opacity: 0; }
.tg-ledger__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--tg-brand-1), var(--tg-brand-2)); }
.tg-ledger__icon svg { width: 15px; height: 15px; stroke-width: 2.2; }
.tg-ledger > span { display: grid; gap: 1px; min-width: 0; }
.tg-ledger b { color: #080e22; font-size: 12.5px; }
.tg-ledger small { color: #5c6172; font-size: 10.5px; }
.tg-ledger em { padding-left: 4px; color: #2e7d52; font-size: 12.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.tg-s5.is-on .tg-ledger { animation-name: tg-s5-ledger; }
@keyframes tg-s5-ledger { 0%, 50% { opacity: 0; translate: 0 10px; } 60%, 100% { opacity: 1; translate: 0 0; } }
.tg-added i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: #2e7d52; }
.tg-added svg { width: 12px; height: 12px; stroke-width: 2.6; }

/* The finger */
.tg-tap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .96) 0 34%, rgba(255, 255, 255, .45) 36% 100%);
  box-shadow: 0 0 0 2px rgba(217, 194, 152, .95), 0 6px 14px rgba(8, 14, 34, .35);
  opacity: 0;
  pointer-events: none;
}
.tg-tap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #d9c298;
  opacity: 0;
}

/* ---------- Choreography (each scene's timeline spans its own --d) ---------- */

.tg-scene.is-on * , .tg-scene.is-on *::after { animation-duration: var(--d); animation-fill-mode: both; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }

/* Scene 1 — pick Nagad, type 1,000, Submit */
.tg-s1.is-on .tg-s1__tap { animation-name: tg-s1-tap; }
.tg-s1.is-on .tg-s1__tap::after { animation-name: tg-s1-ripple; animation-timing-function: ease-out; }
.tg-s1.is-on .tg-row[data-tg-target="1"] { animation-name: tg-pick; animation-timing-function: linear; }
.tg-s1.is-on .tg-s1__type { animation-name: tg-s1-type; animation-timing-function: linear; }
.tg-s1.is-on .tg-s1__caret { animation-name: tg-s1-caret; animation-timing-function: steps(1, end); }
.tg-s1.is-on .tg-s1__submit { animation-name: tg-s1-press; animation-timing-function: ease-out; }
@keyframes tg-s1-tap {
  0% { opacity: 0; translate: 160px 420px; scale: 1; }
  8% { opacity: 1; translate: 160px 420px; }
  20% { translate: var(--t1x) var(--t1y); scale: 1; }
  22% { scale: .78; } 25% { scale: 1; }
  36% { translate: var(--t2x) var(--t2y); scale: 1; }
  38% { scale: .78; } 41% { scale: 1; }
  62% { translate: var(--t2x) var(--t2y); }
  72% { translate: var(--t3x) var(--t3y); scale: 1; }
  74% { scale: .78; } 77% { scale: 1; opacity: 1; }
  88%, 100% { opacity: 0; translate: var(--t3x) var(--t3y); }
}
@keyframes tg-s1-ripple {
  0%, 21% { opacity: 0; scale: .5; } 22% { opacity: .9; scale: .6; } 30% { opacity: 0; scale: 2.3; }
  37% { opacity: 0; scale: .5; } 38% { opacity: .9; scale: .6; } 46% { opacity: 0; scale: 2.3; }
  73% { opacity: 0; scale: .5; } 74% { opacity: .9; scale: .6; } 82%, 100% { opacity: 0; scale: 2.3; }
}
@keyframes tg-pick {
  0%, 22% { border-color: rgba(8, 14, 34, .18); box-shadow: 0 0 0 0 rgba(186, 36, 56, 0); background: #fbfaf6; }
  25%, 100% { border-color: #ba2438; box-shadow: 0 0 0 3px rgba(186, 36, 56, .16); background: #fbeff0; }
}
@keyframes tg-s1-type {
  0% { max-width: 0; }
  40% { max-width: 0; animation-timing-function: steps(5, end); }
  60%, 100% { max-width: var(--tg-type-ch, 6ch); }
}
@keyframes tg-s1-caret {
  0%, 38% { opacity: 0; } 39% { opacity: 1; } 47% { opacity: 1; } 49% { opacity: 1; } 62% { opacity: 1; } 64% { opacity: 0; } 66% { opacity: 1; } 70%, 100% { opacity: 0; }
}
@keyframes tg-s1-press {
  0%, 73% { scale: 1; filter: none; } 75% { scale: .95; filter: brightness(1.18); } 80%, 100% { scale: 1; filter: none; }
}

/* Scene 2 — Open payment page, copy the number, read the red word (held longest: it is what members missed) */
.tg-s2.is-on .tg-s2__a { animation-name: tg-s2-a; }
.tg-s2.is-on .tg-s2__b { animation-name: tg-s2-b; }
.tg-s2.is-on .tg-s2__open { animation-name: tg-s2-open; animation-timing-function: ease-out; }
.tg-s2.is-on .tg-s2__tap { animation-name: tg-s2-tap; }
.tg-s2.is-on .tg-s2__tap::after { animation-name: tg-s2-ripple; animation-timing-function: ease-out; }
.tg-s2.is-on .tg-s2__toast { animation-name: tg-s2-toast; animation-timing-function: ease-out; }
.tg-s2.is-on .tg-red { animation-name: tg-s2-red; animation-timing-function: ease-in-out; }
.tg-player[data-tg-wallet="nagad"] .tg-s2.is-on [data-tg-tile="send"], .tg-player[data-tg-wallet="bkash"] .tg-s2.is-on [data-tg-tile="cash"] { animation-name: tg-s2-tile; animation-timing-function: ease-in-out; }
.tg-s2.is-on .tg-callout { animation-name: tg-s2-callout; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.tg-s2__b { opacity: 0; }
.tg-callout {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 10px 10px;
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 0 0 3px #d9a641, 0 16px 30px rgba(8, 14, 34, .28);
  opacity: 0;
}
.tg-callout::before { content: ''; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; background: #fffaf0; box-shadow: -3px -3px 0 0 #d9a641; rotate: 45deg; }
.tg-callout b { position: relative; color: #d61f2c; font-size: 26px; font-weight: 900; line-height: 1.15; }
.tg-callout small { position: relative; color: #5c4415; font-size: 11.5px; font-weight: 800; }
@keyframes tg-s2-a { 0%, 26% { opacity: 1; translate: 0 0; } 29%, 100% { opacity: 0; translate: -24px 0; } }
@keyframes tg-s2-b { 0%, 29% { opacity: 0; translate: 24px 0; } 32%, 100% { opacity: 1; translate: 0 0; } }
@keyframes tg-s2-open {
  0% { box-shadow: 0 6px 14px rgba(186, 36, 56, .28); }
  8% { box-shadow: 0 0 0 6px rgba(186, 36, 56, .18), 0 6px 14px rgba(186, 36, 56, .28); }
  16% { scale: 1; box-shadow: 0 6px 14px rgba(186, 36, 56, .28); }
  19% { scale: .95; filter: brightness(1.18); } 22%, 100% { scale: 1; filter: none; }
}
@keyframes tg-s2-tap {
  0% { opacity: 0; translate: 160px 420px; scale: 1; }
  5% { opacity: 1; translate: 160px 420px; }
  16% { translate: var(--t1x) var(--t1y); scale: 1; }
  19% { scale: .78; } 22% { scale: 1; opacity: 1; }
  26% { opacity: 0; translate: var(--t1x) var(--t1y); }
  34% { opacity: 0; translate: 150px 400px; }
  37% { opacity: 1; translate: 150px 400px; }
  44% { translate: var(--t2x) var(--t2y); scale: 1; }
  46% { scale: .78; } 49% { scale: 1; }
  56% { translate: calc(var(--t3x) + 14px) calc(var(--t3y) + 20px); opacity: 1; }
  66%, 100% { translate: calc(var(--t3x) + 14px) calc(var(--t3y) + 20px); opacity: 0; }
}
@keyframes tg-s2-ripple {
  0%, 18% { opacity: 0; scale: .5; } 19% { opacity: .9; scale: .6; } 25% { opacity: 0; scale: 2.3; }
  45% { opacity: 0; scale: .5; } 46% { opacity: .9; scale: .6; } 52%, 100% { opacity: 0; scale: 2.3; }
}
@keyframes tg-s2-toast { 0%, 46% { opacity: 0; translate: 0 6px; } 48%, 58% { opacity: 1; translate: 0 0; } 62%, 100% { opacity: 0; translate: 0 -4px; } }
@keyframes tg-s2-red {
  0%, 54% { box-shadow: 0 0 0 0 rgba(217, 194, 152, 0); background: transparent; }
  57% { box-shadow: 0 0 0 2px #d9a641; background: #fff5dc; }
  62% { box-shadow: 0 0 0 5px rgba(217, 166, 65, .25); background: #fff5dc; }
  66%, 100% { box-shadow: 0 0 0 2px #d9a641; background: #fff5dc; }
}
@keyframes tg-s2-tile { 0%, 58% { box-shadow: none; } 61%, 100% { box-shadow: 0 0 0 2px #d61f2c; } }
@keyframes tg-s2-callout { 0%, 63% { opacity: 0; scale: .6; translate: 0 16px; } 69%, 100% { opacity: 1; scale: 1; translate: 0 0; } }

/* Scene 3 — wallet app: the same option, the number, the exact amount, PIN, TrxID */
.tg-s3.is-on .tg-s3__a { animation-name: tg-s3-a; }
.tg-s3.is-on .tg-s3__b { animation-name: tg-s3-b; }
.tg-s3.is-on .tg-s3__c { animation-name: tg-s3-c; }
.tg-s3.is-on .tg-tile[data-tg-target="1"] { animation-name: tg-s3-send; animation-timing-function: ease-in-out; }
.tg-s3.is-on .tg-s3__number { animation-name: tg-s3-paste; }
.tg-s3.is-on .tg-s3__type { animation-name: tg-s3-type; animation-timing-function: linear; }
.tg-s3.is-on .tg-pin i:nth-child(1) { animation-name: tg-pin1; }
.tg-s3.is-on .tg-pin i:nth-child(2) { animation-name: tg-pin2; }
.tg-s3.is-on .tg-pin i:nth-child(3) { animation-name: tg-pin3; }
.tg-s3.is-on .tg-pin i:nth-child(4) { animation-name: tg-pin4; }
.tg-s3.is-on .tg-pin i:nth-child(5) { animation-name: tg-pin5; }
.tg-s3.is-on .tg-done__check { animation-name: tg-s3-check; animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); }
.tg-s3.is-on .tg-trx { animation-name: tg-s3-trx; }
.tg-s3.is-on .tg-s3__tap { animation-name: tg-s3-tap; }
.tg-s3.is-on .tg-s3__tap::after { animation-name: tg-s3-ripple; animation-timing-function: ease-out; }
.tg-s3.is-on .tg-s3__toast { animation-name: tg-s3-toast; }
.tg-s3__b, .tg-s3__c { opacity: 0; }
@keyframes tg-s3-a { 0%, 27% { opacity: 1; translate: 0 0; } 30%, 100% { opacity: 0; translate: -24px 0; } }
@keyframes tg-s3-b { 0%, 30% { opacity: 0; translate: 24px 0; } 33%, 71% { opacity: 1; translate: 0 0; } 74%, 100% { opacity: 0; translate: -24px 0; } }
@keyframes tg-s3-c { 0%, 74% { opacity: 0; translate: 24px 0; } 77%, 100% { opacity: 1; translate: 0 0; } }
@keyframes tg-s3-send { 0% { box-shadow: 0 0 0 0 rgba(217, 166, 65, 0); } 8%, 22% { box-shadow: 0 0 0 3px #d9a641; } 24% { scale: .95; } 27%, 100% { scale: 1; box-shadow: 0 0 0 3px #d9a641; } }
@keyframes tg-s3-paste { 0%, 39% { opacity: 0; } 41%, 100% { opacity: 1; } }
@keyframes tg-s3-type { 0% { max-width: 0; } 46% { max-width: 0; animation-timing-function: steps(6, end); } 54%, 100% { max-width: calc(var(--tg-type-ch, 6ch) + 1ch); } }
@keyframes tg-pin1 { 0%, 56% { background: transparent; border-color: #c5c9d1; } 57%, 100% { background: #1d2433; border-color: #1d2433; } }
@keyframes tg-pin2 { 0%, 58% { background: transparent; border-color: #c5c9d1; } 59%, 100% { background: #1d2433; border-color: #1d2433; } }
@keyframes tg-pin3 { 0%, 60% { background: transparent; border-color: #c5c9d1; } 61%, 100% { background: #1d2433; border-color: #1d2433; } }
@keyframes tg-pin4 { 0%, 62% { background: transparent; border-color: #c5c9d1; } 63%, 100% { background: #1d2433; border-color: #1d2433; } }
@keyframes tg-pin5 { 0%, 64% { background: transparent; border-color: #c5c9d1; } 65%, 100% { background: #1d2433; border-color: #1d2433; } }
@keyframes tg-s3-check { 0%, 74% { scale: 0; } 80% { scale: 1.08; } 84%, 100% { scale: 1; } }
@keyframes tg-s3-trx { 0%, 87% { box-shadow: 0 0 0 0 rgba(19, 128, 78, 0); } 90%, 100% { box-shadow: 0 0 0 3px rgba(19, 128, 78, .35); } }
@keyframes tg-s3-toast { 0%, 88% { opacity: 0; translate: 0 6px; } 91%, 100% { opacity: 1; translate: 0 0; } }
@keyframes tg-s3-tap {
  0% { opacity: 0; translate: 160px 420px; scale: 1; }
  6% { opacity: 1; translate: 160px 420px; }
  20% { translate: var(--t1x) var(--t1y); scale: 1; }
  23% { scale: .78; } 26% { scale: 1; opacity: 1; }
  31% { opacity: 0; }
  36% { opacity: 0; translate: var(--t2x) var(--t2y); }
  38% { opacity: 1; translate: var(--t2x) var(--t2y); scale: 1; }
  40% { scale: .78; } 42% { scale: 1; }
  45% { translate: var(--t3x) var(--t3y); scale: 1; }
  47% { scale: .78; } 49% { scale: 1; }
  64% { translate: var(--t4x) var(--t4y); scale: 1; }
  67% { scale: .78; } 70% { scale: 1; opacity: 1; }
  74% { opacity: 0; }
  80% { opacity: 0; translate: var(--t5x) var(--t5y); }
  84% { opacity: 1; translate: var(--t5x) var(--t5y); scale: 1; }
  88% { scale: .78; } 91% { scale: 1; opacity: 1; }
  98%, 100% { opacity: 0; translate: var(--t5x) var(--t5y); }
}
@keyframes tg-s3-ripple {
  0%, 22% { opacity: 0; scale: .5; } 23% { opacity: .9; scale: .6; } 30% { opacity: 0; scale: 2.3; }
  39% { opacity: 0; scale: .5; } 40% { opacity: .9; scale: .6; } 44% { opacity: 0; scale: 2; }
  46% { opacity: 0; scale: .5; } 47% { opacity: .9; scale: .6; } 52% { opacity: 0; scale: 2; }
  66% { opacity: 0; scale: .5; } 67% { opacity: .9; scale: .6; } 74% { opacity: 0; scale: 2.3; }
  87% { opacity: 0; scale: .5; } 88% { opacity: .9; scale: .6; } 96%, 100% { opacity: 0; scale: 2.3; }
}

/* Scene 4 — paste the TrxID, Confirm, checking */
.tg-s4.is-on .tg-s4__tap { animation-name: tg-s4-tap; }
.tg-s4.is-on .tg-s4__tap::after { animation-name: tg-s4-ripple; animation-timing-function: ease-out; }
.tg-s4.is-on .tg-s4__trx { animation-name: tg-s4-paste; }
.tg-s4.is-on .tg-s4__field { animation-name: tg-s4-field; }
.tg-s4.is-on .tg-s4__confirm { animation-name: tg-s4-confirm; }
.tg-s4.is-on .tg-s4__checking { animation-name: tg-s4-checking; }
.tg-s4.is-on .tg-spin { animation: tg-spin .8s linear infinite; }
@keyframes tg-spin { to { rotate: 360deg; } }
@keyframes tg-s4-tap {
  0% { opacity: 0; translate: 160px 420px; scale: 1; }
  6% { opacity: 1; translate: 160px 420px; }
  16% { translate: var(--t1x) var(--t1y); scale: 1; }
  19% { scale: .78; } 22% { scale: 1; }
  38% { translate: var(--t2x) var(--t2y); scale: 1; }
  41% { scale: .78; } 44% { scale: 1; opacity: 1; }
  52%, 100% { opacity: 0; translate: var(--t2x) var(--t2y); }
}
@keyframes tg-s4-ripple {
  0%, 18% { opacity: 0; scale: .5; } 19% { opacity: .9; scale: .6; } 27% { opacity: 0; scale: 2.3; }
  40% { opacity: 0; scale: .5; } 41% { opacity: .9; scale: .6; } 49%, 100% { opacity: 0; scale: 2.3; }
}
@keyframes tg-s4-paste { 0%, 21% { opacity: 0; } 23%, 100% { opacity: 1; } }
@keyframes tg-s4-field { 0%, 22% { border-color: #e04a4a; } 25%, 100% { border-color: #13804e; box-shadow: 0 0 0 3px rgba(19, 128, 78, .14); } }
@keyframes tg-s4-confirm { 0%, 24% { background: #b8bec7; } 27%, 40% { background: #13804e; scale: 1; } 42% { scale: .95; background: #13804e; } 45%, 100% { scale: 1; background: #13804e; } }
@keyframes tg-s4-checking { 0%, 47% { opacity: 0; translate: 0 8px; } 53%, 100% { opacity: 1; translate: 0 0; } }

/* Scene 5 — the balance rolls over by itself */
.tg-s5.is-on .tg-s5__before { animation-name: tg-s5-out; }
.tg-s5.is-on .tg-s5__after { animation-name: tg-s5-in; }
.tg-s5.is-on .tg-purse__sheen { animation-name: tg-s5-sheen; animation-timing-function: ease-in-out; }
.tg-s5.is-on .tg-added { animation-name: tg-s5-added; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.tg-s5.is-on .tg-spark--a { animation-name: tg-spark-a; }
.tg-s5.is-on .tg-spark--b { animation-name: tg-spark-b; }
.tg-s5.is-on .tg-spark--c { animation-name: tg-spark-c; }
@keyframes tg-s5-out { 0%, 22% { translate: 0 0; opacity: 1; } 34%, 100% { translate: 0 -36px; opacity: 0; } }
@keyframes tg-s5-in { 0%, 24% { translate: 0 36px; opacity: 0; } 36%, 100% { translate: 0 0; opacity: 1; } }
@keyframes tg-s5-sheen { 0%, 34% { translate: -120% 0; } 58%, 100% { translate: 120% 0; } }
@keyframes tg-s5-added { 0%, 42% { opacity: 0; scale: .7; } 50%, 100% { opacity: 1; scale: 1; } }
@keyframes tg-spark-a { 0%, 38% { opacity: 0; scale: .2; } 46% { opacity: 1; scale: 1.2; } 62%, 100% { opacity: 0; scale: .4; } }
@keyframes tg-spark-b { 0%, 44% { opacity: 0; scale: .2; } 52% { opacity: 1; scale: 1.2; } 68%, 100% { opacity: 0; scale: .4; } }
@keyframes tg-spark-c { 0%, 50% { opacity: 0; scale: .2; } 58% { opacity: 1; scale: 1.2; } 74%, 100% { opacity: 0; scale: .4; } }

/* Paused / not started: hold the frame. !important: per-scene rules (e.g. the spinner's
   animation shorthand) are more specific and would otherwise reset the play state. */
.tg-player.is-paused .tg-screen *, .tg-player.is-paused .tg-screen *::after, .tg-player.is-paused .tg-rail__fill { animation-play-state: paused !important; }

/* Reduced motion: each step is a finished still, no autoplay. !important for the same
   reason as above, and to match the site-wide reduced-motion reset. */
.tg-player.is-static .tg-screen *, .tg-player.is-static .tg-screen *::after {
  animation-duration: 1ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  animation-play-state: running !important;
  transition: none !important;
}
.tg-player.is-static .tg-tap { display: none; }
.tg-player.is-static .tg-toast { visibility: hidden; }

/* ---------- Caption, rail, controls ---------- */

.tg-caption { min-height: 142px; }
.tg-caption__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.tg-caption__count { margin: 0; color: #d9c298; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
html:lang(bn) .tg-caption__count { letter-spacing: .02em; }
.tg-steps { margin: 0; padding: 0; list-style: none; }
.tg-step:not(.is-active) { display: none; }
.tg-step.is-active { display: grid; gap: 6px; animation: tg-caption-in .35s var(--ks-ease, ease) both; }
@keyframes tg-caption-in { from { opacity: 0; translate: 0 6px; } }
.tg-step__title { color: #fff; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.tg-step__body { color: rgba(244, 240, 231, .8); font-size: 13.5px; line-height: 1.55; }

.tg-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.tg-player.is-static .tg-nav { grid-template-columns: minmax(0, 1fr) auto auto; }
.tg-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.tg-rail__seg {
  position: relative;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.tg-rail__seg::before { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; background: rgba(244, 240, 231, .18); }
.tg-rail__fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f0dcae, #c9a66b);
  transform: scaleX(0);
  transform-origin: left center;
}
.tg-rail__seg.is-done .tg-rail__fill { transform: scaleX(1); }
.tg-rail__seg.is-active .tg-rail__fill { animation: tg-fill var(--tg-d, 6s) linear both; }
.tg-player.is-static .tg-rail__seg.is-active .tg-rail__fill, .tg-player.is-ended .tg-rail__seg.is-active .tg-rail__fill { animation: none; transform: scaleX(1); }
@keyframes tg-fill { to { transform: scaleX(1); } }
.tg-rail__seg:focus-visible { outline: 2px solid #d9c298; outline-offset: 2px; border-radius: 4px; }

.tg-ctl {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(244, 240, 231, .24);
  border-radius: 50%;
  color: #f4f0e7;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.tg-ctl:hover { background: rgba(255, 255, 255, .12); border-color: rgba(244, 240, 231, .4); }
.tg-ctl:focus-visible { outline: 3px solid #d9c298; outline-offset: 2px; }
.tg-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tg-ctl--main { width: 46px; height: 46px; border: 0; color: #080e22; background: linear-gradient(180deg, #ecdab1, #c9a66b); box-shadow: 0 8px 20px rgba(201, 166, 107, .3); }
.tg-ctl--main:hover { background: linear-gradient(180deg, #f3e4c2, #d1b07a); }
.tg-ctl--main svg { width: 20px; height: 20px; }
.tg-ctl--main .tg-ico-play { fill: currentColor; stroke: none; }
.tg-ctl--main svg { display: none; }
.tg-ctl--main[data-state="play"] .tg-ico-play, .tg-ctl--main[data-state="pause"] .tg-ico-pause, .tg-ctl--main[data-state="replay"] .tg-ico-replay { display: block; }
.tg-ctl--main[hidden] { display: none; }

/* ---------- Deposit form touches ---------- */

/* Wallet colour on the SafePay method cards, so members can find their app at a glance. */
.lm-member .lm-method:has(input[value="1102"], input[value="1105"]) .lm-method__bank::before,
.lm-member .lm-method:has(input[value="1103"], input[value="1106"]) .lm-method__bank::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 4px;
  vertical-align: 1px;
  background: linear-gradient(135deg, #f7941d, #ed1c24);
}
.lm-member .lm-method:has(input[value="1103"], input[value="1106"]) .lm-method__bank::before { background: #e2136e; }

/* Cashier: what to do right after the order is created */
.lm-warning .lm-next-title { color: var(--lm-midnight, #080e22); font-size: 14px; letter-spacing: 0; text-transform: none; }
.lm-next { display: grid; gap: 8px; margin: 6px 0 4px; padding: 0; list-style: none; counter-reset: lm-next; }
.lm-next li { position: relative; padding-left: 32px; color: var(--lm-ink, #232945); font-size: 13.5px; line-height: 1.55; counter-increment: lm-next; }
.lm-next li::before {
  content: counter(lm-next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #080e22;
  background: linear-gradient(180deg, #ecdab1, #c9a66b);
  font-size: 12px;
  font-weight: 800;
}
.lm-warning[data-lm-safepay-status] { gap: 10px; }
[data-lm-safepay-status] .lm-btn { width: 100%; }
@media (min-width: 761px) { [data-lm-safepay-status] .lm-btn { width: fit-content; } }

/* Cashier: which app, and that SafePay's page decides Send Money or Cash Out */
.lm-method-hint { margin: -6px 0 0; color: var(--lm-ink, #232945); font-size: 14px; line-height: 1.5; }
.lm-warning[data-lm-safepay-status] { scroll-margin-top: 96px; }
.lm-warning[data-lm-safepay-status]:empty { display: none; }
.lm-warning[data-lm-safepay-status] .lm-next-title:focus { outline: none; }
.lm-warning[data-lm-safepay-status] .lm-next-title:focus-visible { outline: 3px solid var(--lm-champagne, #b9925a); outline-offset: 3px; border-radius: 4px; }
/* While an order is open the form is read-only, so the amount cannot silently snap back. */
form[data-lm-order-open] input[name="amount"] { color: var(--lm-ink-soft, #5c6172); background: rgba(8, 14, 34, .04); }
form[data-lm-order-open] .lm-method { cursor: not-allowed; opacity: .5; filter: grayscale(.6); }
form[data-lm-order-open] .lm-method:has(input:checked) { opacity: 1; filter: none; }
/* The confirmed order is the payoff: green, the amount, and what to do next. */
.lm-warning.is-settled { border-left-color: var(--lm-ok, #2e7d52); background: rgba(46, 125, 82, .08); }
.lm-settled { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
.lm-settled__check { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--lm-ok, #2e7d52); box-shadow: 0 0 0 6px rgba(46, 125, 82, .14); }
.lm-settled__check svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lm-warning .lm-settled strong { color: #1f6b45; font-size: 15px; letter-spacing: 0; text-transform: none; }
.lm-warning .lm-settled span { color: var(--lm-ink, #232945); font: 600 18px/1.3 var(--lm-serif, Georgia, serif); }
.lm-settled__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-warning.is-settled .lm-settled { animation: lm-settled-in .45s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes lm-settled-in { from { opacity: 0; scale: .96; } }

/* An open order is progress, not an error: champagne instead of the ruby alert rule. */
.lm-warning.is-pending { border-left-color: var(--lm-champagne, #b9925a); background: rgba(185, 146, 90, .1); }
.lm-warning.is-pending > span:first-child { color: var(--lm-ink, #232945); font-weight: 600; }
/* Phones: an error or the button must not end up under the fixed bottom tab bar. */
.lm-member--m form[data-lm-deposit-form] button[type="submit"], .lm-member--m [data-lm-message] { scroll-margin-bottom: calc(var(--ks-tabbar-h, 64px) + 24px); }
.lm-warning .lm-settled strong:focus { outline: none; }
.lm-warning .lm-settled strong:focus-visible { outline: 2px solid rgba(46, 125, 82, .55); outline-offset: 6px; border-radius: 8px; }
.tg-step__title:focus { outline: none; }
.tg-step__title:focus-visible { outline: 2px solid #d9c298; outline-offset: 4px; border-radius: 6px; }
/* Short phones: keep the deposit button clear of the tab bar; the chips are a bonus. */
@media (max-height: 820px) { .lm-member--m .tg-launch__chips { display: none; } }
.tg-launch__cta-short { display: none; }
.lm-member--m .tg-launch__cta-long { display: none; }
.lm-member--m .tg-launch__cta-short { display: inline; }

/* ---------- Picture guide (3 still steps; replaced the animation on the deposit page) ---------- */

.tp-pics { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-pic {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(244, 240, 231, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}
.tp-pic--key { border-color: #3ecf8e; background: rgba(62, 207, 142, .1); }
.tp-shot {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  color: #1c2233;
  background: #fff;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.tp-shot__bar { padding: 4px 6px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #e2136e, #f7941d); font-weight: 700; text-align: center; }
.tp-opt { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.tp-opt .tg-red { margin: 0; background: #fdecee; }
.tp-field { display: grid; gap: 2px; padding: 4px 6px; border: 1px solid #d4d8e2; border-radius: 6px; }
.tp-field small { color: #5a6275; font-size: 12px; }
.tp-field b { font-size: 13px; letter-spacing: .02em; }
.tp-shot__ok { display: flex; align-items: center; gap: 4px; color: #127a4b; font-weight: 700; }
.tp-shot__ok i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; background: #1aa167; font-style: normal; font-size: 12px; }
.tp-id { display: grid; gap: 1px; padding: 4px 6px; border-radius: 6px; }
.tp-id em { font-style: normal; font-weight: 700; font-size: 12px; }
.tp-id--good { border: 2px solid #1aa167; background: #e9f8f0; }
.tp-id--good small { color: #3d4456; font-size: 12px; }
.tp-id--good b { font-size: 13px; letter-spacing: .03em; }
.tp-id--good em { color: #127a4b; }
.tp-id--bad { border: 1px dashed #d61f2c; background: #fdf0f1; }
.tp-id--bad s { color: #5a6275; font-size: 12px; white-space: nowrap; }
.tp-id--bad em { color: #b3151f; }
.tp-btn { padding: 6px; border-radius: 6px; color: #fff; background: #14794a; font-weight: 700; text-align: center; }
.tp-text { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-content: center; }
.tp-n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #151c3d; background: var(--tg-gold, #d9c298); font-size: 14px; }
.tp-pic--key .tp-n { background: #3ecf8e; }
.tp-text h3 { margin: 0; color: var(--tg-ivory, #f4f0e7); font-size: 15px; font-weight: 700; line-height: 1.3; }
.tp-text p { margin: 0; color: rgba(244, 240, 231, .82); font-size: 13px; line-height: 1.45; }
html:lang(bn) .tp-text h3, html:lang(bn) .tp-text p { font-family: 'Noto Sans Bengali', var(--lm-sans, sans-serif); }
.tp-fix { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid #e6b450; border-radius: 8px; color: var(--tg-ivory, #f4f0e7); background: rgba(230, 180, 80, .12); font-size: 13px; line-height: 1.45; }
html:lang(bn) .tp-fix { font-family: 'Noto Sans Bengali', var(--lm-sans, sans-serif); }
.tg-dialog .tp-pics { overflow-y: auto; min-height: 0; }
.tg-dialog .tg-dialog__inner { height: auto; max-height: 100%; }
/* fit-content: a modal dialog is inset 0, so height auto would fill the screen. */
.tg-dialog:has(.tp-pics) { height: fit-content; }
@media (max-width: 560px) {
  .tg-dialog:has(.tp-pics) { height: 100dvh; }
  .tp-pic { grid-template-columns: 124px minmax(0, 1fr); gap: 10px; padding: 8px; }
}
