.topup-flow {
  --flow-ink: #232832;
  --flow-gold: #94510c;
  --flow-rule: #d6cebf;
  padding-block: clamp(44px, 6vw, 84px);
  color: var(--flow-ink);
  background: #f8f5ee;
}
.flow-heading {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: 28px;
}
.flow-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.flow-heading em { display: block; color: var(--flow-gold); font-style: normal; }
.flow-heading p, .flow-station p, .flow-outcome p { margin: 0; line-height: 1.52; }
.flow-heading p { max-width: 40ch; color: #535a63; }
.flow-board {
  overflow: hidden;
  border: 1px solid var(--flow-rule);
  border-radius: 20px;
  background: #fffcf6;
}
.flow-stations {
  --gutter: clamp(18px, 2.8vw, 42px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin: 0;
  padding: clamp(20px, 2.8vw, 38px);
  list-style: none;
}
.flow-station { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.flow-track { position: relative; margin-bottom: 18px; }
.flow-track span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c9bdab;
  border-radius: 50%;
  color: #584c39;
  background: #fffcf6;
  font: 600 12px/1 ui-monospace, monospace;
}
.flow-payment .flow-track span { background: #f7d695; border-color: #dcb366; }
.flow-delivery .flow-track span { background: #e1f1e7; border-color: #9dc7b1; color: #215943; }
.flow-station:not(:last-child) .flow-track::before {
  content: "";
  position: absolute;
  left: 38px;
  right: calc(6px - var(--gutter));
  top: 15px;
  height: 1px;
  background: #c4b9a5;
}
.flow-station:not(:last-child) .flow-track::after {
  content: "";
  position: absolute;
  right: calc(6px - var(--gutter));
  top: 12px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #98886f;
  border-right: 1px solid #98886f;
  transform: rotate(45deg);
}
.flow-role { color: #77501f; font-size: .85rem; font-weight: 650; }
.flow-station h3 { margin: 4px 0 9px; color: var(--flow-ink); font-size: clamp(19px, 2vw, 28px); line-height: 1.12; letter-spacing: -.04em; }
.flow-station p { margin-bottom: 18px; color: #515762; font-size: .95rem; }
.flow-record {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 13px;
  background: #f2eadd;
  border-radius: 10px;
}
.flow-record small, .flow-record b { display: block; }
.flow-record small { font-size: .75rem; line-height: 1.45; }
.flow-record b { font-size: 1.04rem; line-height: 1.3; }
.flow-glyph, .flow-seal { flex: none; display: grid; place-items: center; }
.flow-glyph { width: 38px; height: 38px; border-radius: 9px; color: #754900; background: #f4d99d; }
.flow-glyph svg { width: 23px; height: 23px; }
.flow-payment .flow-record { background: #282d35; color: #fff8ec; }
.flow-payment .flow-glyph { background: #403b32; color: #f8cc78; }
.flow-delivery .flow-record { background: #e8f1ea; color: #1e513e; }
.flow-delivery .flow-glyph { background: #d0e4d6; color: #28634d; }
.flow-outcome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(20px, 2.8vw, 38px);
  border-top: 1px solid var(--flow-rule);
  background: #f5f1e7;
}
.flow-seal { width: 32px; height: 32px; border-radius: 50%; background: #245642; color: #fff; }
.flow-seal svg { width: 19px; }
.flow-outcome strong { color: #214c3b; }
.flow-outcome p { color: #535a63; font-size: .87rem; }
.flow-outcome a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #744407; font-size: .88rem; font-weight: 650; text-underline-offset: 4px; }
.flow-outcome a svg { width: 16px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .flow-tracing .flow-track span { animation: flow-confirm .6s ease-out; }
  .flow-tracing .flow-payment .flow-track span { animation-delay: .55s; }
  .flow-tracing .flow-delivery .flow-track span { animation-delay: 1.1s; }
  @keyframes flow-confirm {
    35% { box-shadow: 0 0 0 4px #c9a35e45; }
  }
}
@media (max-width: 740px) {
  .flow-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .flow-stations { grid-template-columns: 1fr; gap: 0; padding-block: 22px; }
  .flow-station { position: relative; padding-left: 42px; }
  .flow-station:not(:last-child) { padding-bottom: 22px; }
  .flow-track { position: absolute; inset: 0 auto 0 0; width: 30px; margin: 0; }
  .flow-track span { width: 28px; height: 28px; }
  .flow-station:not(:last-child) .flow-track::before { inset: 32px auto 4px 13px; width: 1px; height: auto; }
  .flow-station:not(:last-child) .flow-track::after { inset: auto auto 4px 10px; transform: rotate(135deg); }
  .flow-station h3 { margin: 3px 0 5px; }
  .flow-station p { margin-bottom: 10px; }
  .flow-record { padding: 8px 12px; }
  .flow-glyph { width: 30px; height: 30px; }
  .flow-glyph svg { width: 18px; }
  .flow-outcome { display: grid; grid-template-columns: 28px 1fr; gap: 6px 14px; align-items: start; }
  .flow-seal { width: 28px; height: 28px; }
  .flow-outcome a { grid-column: 2; margin-left: 0; }
}
