/* =========================================================================
   RemitPay portal - single stylesheet.
   Self-hosted on purpose: the Content-Security-Policy is style-src 'self',
   so no CDN, no Google Fonts, no inline style attributes anywhere.
   ========================================================================= */

:root {
  --navy-900: #071230;
  --navy-800: #0b1b3a;
  --navy-700: #12285a;
  --navy-600: #1b3a7d;

  --brand-500: #2563eb;
  --brand-400: #3b82f6;
  --brand-300: #60a5fa;

  --teal-400: #14b8a6;
  --amber-400: #f59e0b;
  --rose-500: #e11d48;
  --green-500: #16a34a;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white:   #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .09), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg: 0 28px 70px rgba(7, 18, 48, .22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ring: 0 0 0 3px rgba(37, 99, 235, .28);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--brand-500); }

button { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

/* =========================================================================
   Auth layout
   ========================================================================= */

.body--auth { background: var(--navy-900); }

.auth {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---- brand side ---- */

.auth__brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 56px clamp(32px, 5vw, 76px);
  color: rgba(255, 255, 255, .92);
  background:
    radial-gradient(120% 120% at 8% 4%, #1b3a7d 0%, #0d1f45 42%, #071230 100%);
}

.brand__inner { position: relative; z-index: 2; max-width: 460px; }

.brand__glow {
  position: absolute;
  inset: auto -20% -35% -10%;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(59, 130, 246, .38), transparent 70%);
  filter: blur(18px);
  z-index: 1;
}

.brand__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 46px; color: var(--brand-300); }
.brand__name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--white); }

.brand__head {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--white);
  margin-bottom: 18px;
}

.brand__sub { font-size: 16px; color: rgba(226, 232, 240, .78); margin-bottom: 34px; }

.brand__points { display: grid; gap: 14px; }
.brand__points li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: rgba(226, 232, 240, .86); }
.brand__points svg { flex: none; margin-top: 3px; color: var(--teal-400); }

/* ---- form side ---- */

.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  background: var(--ink-50);
}

.panel {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px clamp(22px, 4vw, 36px) 28px;
}

.panel__logo {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--brand-500);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.panel__title { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.panel__sub { font-size: 14.5px; color: var(--ink-500); margin-bottom: 24px; }

.panel__note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 18px; font-size: 12.5px; color: var(--ink-500);
}
.panel__note--center { display: block; text-align: center; }
.panel__note svg { flex: none; color: var(--ink-400); }

.panel__legal {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--ink-100);
  font-size: 11.5px; color: var(--ink-400); text-align: center;
}

/* ---- stepper ---- */

.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; }

.stepper__item {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
  font-size: 12px; color: var(--ink-400);
}
.stepper__item span {
  flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: var(--ink-100); color: var(--ink-400);
  transition: background .18s ease, color .18s ease;
}
.stepper__item em { font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stepper__item.is-active span { background: var(--brand-500); color: var(--white); }
.stepper__item.is-active { color: var(--ink-900); }
.stepper__item.is-done span { background: var(--teal-400); color: var(--white); }
.stepper__item.is-done { color: var(--ink-700); }

/* ---- steps ---- */

.step { display: none; }
.step.is-active { display: block; animation: rise .26s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .step.is-active { animation: none; }
}

/* ---- fields ---- */

.field { margin-bottom: 17px; }

.field__label {
  display: block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-700); margin-bottom: 6px;
}

.field__wrap { position: relative; display: flex; align-items: center; }

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15.5px;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field__input::placeholder { color: var(--ink-400); }
.field__input:hover { border-color: #cbd5e1; }
.field__input:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }

.field__input--prefixed { padding-left: 52px; }
.field__input--otp {
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: .4em;
  text-align: center;
  padding-right: 14px;
}

.field__prefix {
  position: absolute; left: 14px;
  font-size: 15px; font-weight: 600; color: var(--ink-500);
  pointer-events: none;
}

.field__toggle {
  position: absolute; right: 6px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 10px;
  color: var(--ink-400); cursor: pointer;
}
.field__toggle:hover { color: var(--ink-700); background: var(--ink-100); }

.field__error { margin-top: 6px; font-size: 12.5px; color: var(--rose-500); }

.field--bad .field__input { border-color: var(--rose-500); }

/* ---- segmented control ---- */

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 18px;
  background: var(--ink-100); border-radius: var(--radius);
}
.segmented__btn {
  height: 38px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-500);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.segmented__btn.is-on { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-sm); }

/* ---- buttons ---- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px;
  font-size: 15.5px; font-weight: 650;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
}
.btn--block { display: flex; width: 100%; }
a.btn { text-decoration: none; }

.signout-form { margin: 0; display: inline-flex; }

.btn--primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
  box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
}
.btn--primary:hover { box-shadow: 0 9px 24px rgba(37, 99, 235, .36); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: var(--white); color: var(--ink-700);
  border: 1.5px solid var(--ink-200);
}
.btn--ghost:hover { background: var(--ink-50); }

.btn[disabled], .btn.is-busy { opacity: .62; cursor: not-allowed; box-shadow: none; }
.btn.is-busy .btn__label { visibility: hidden; }
.btn.is-busy .spinner--btn { display: block; }

.linkbtn {
  background: none; border: 0; padding: 0;
  color: var(--brand-500); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.linkbtn[disabled] { color: var(--ink-400); cursor: default; }

.backlink {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-500); cursor: pointer;
}
.backlink:hover { color: var(--ink-900); }

/* ---- spinner ---- */

.spinner {
  width: 18px; height: 18px;
  border: 2.2px solid rgba(255, 255, 255, .45);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner--btn { display: none; position: absolute; }
.gate__state .spinner { border-color: rgba(37, 99, 235, .25); border-top-color: var(--brand-500); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- alert ---- */

.alert {
  padding: 11px 14px; margin-bottom: 18px;
  font-size: 13.5px; line-height: 1.45;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--rose-500);
  background: #fef2f2; color: #9f1239;
}
.alert--ok { border-left-color: var(--green-500); background: #f0fdf4; color: #14532d; }
.alert--warn { border-left-color: var(--amber-400); background: #fffbeb; color: #92400e; }

/* =========================================================================
   Location gate
   ========================================================================= */

.gate {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(7, 18, 48, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gate[hidden] { display: none; }

.gate__card {
  width: 100%; max-width: 392px;
  padding: 30px 26px 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pop .22s ease both;
}

@keyframes pop {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .gate__card { animation: none; } }

.gate__icon {
  width: 66px; height: 66px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--brand-500);
  background: #eff6ff;
}

.gate__title { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 9px; }
.gate__text { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }

.gate__state {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-bottom: 18px; font-size: 13.5px; color: var(--ink-500);
}
.gate__state[hidden] { display: none; }

.gate__help {
  text-align: left;
  padding: 14px 16px; margin-bottom: 18px;
  background: #fffbeb; border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber-400);
}
.gate__help[hidden] { display: none; }
.gate__help-title { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 8px; }
.gate__steps { display: grid; gap: 6px; font-size: 12.8px; color: #78350f; counter-reset: s; }
.gate__steps li { counter-increment: s; padding-left: 20px; position: relative; }
.gate__steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  background: var(--amber-400); color: var(--white);
}

.gate__foot { margin-top: 12px; font-size: 11.5px; color: var(--ink-400); }

/* =========================================================================
   Dashboard
   ========================================================================= */

.body--app { background: var(--ink-50); }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-800);
  color: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.topbar__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex; align-items: center; gap: 14px;
}
.topbar__brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: -.01em;
}
.topbar__brand svg { color: var(--brand-300); }
.topbar__spacer { flex: 1; }

.topbar__who {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  background: var(--brand-500); color: var(--white);
}
.topbar__names { line-height: 1.25; min-width: 0; }
.topbar__name { font-size: 13.5px; font-weight: 650; color: var(--white); }
.topbar__role { font-size: 11px; color: rgba(226, 232, 240, .62); }

.btn--signout {
  height: 36px; padding: 0 14px;
  font-size: 13.5px; font-weight: 600;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border-radius: 10px; border: 0; cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn--signout:hover { background: rgba(255, 255, 255, .18); color: var(--white); }

.ticker {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
}
.ticker__inner {
  max-width: 1180px; margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: flex-start; gap: 9px;
}
.ticker svg { flex: none; margin-top: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 20px 56px; }

.page__head { margin-bottom: 22px; }
.page__title { font-size: 26px; font-weight: 700; letter-spacing: -.022em; }
.page__sub { font-size: 14px; color: var(--ink-500); margin-top: 3px; }

.grid { display: grid; gap: 16px; }
.grid--balances { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 22px; }
.grid--info { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.card__head {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 15px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink-500);
}
.card__head svg { color: var(--ink-400); }

/* ---- balance cards ---- */

.balance {
  position: relative; overflow: hidden;
  color: var(--white);
  border: 0;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.balance--aeps { background: linear-gradient(135deg, #0f766e, #064e43); }

.balance__label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(226, 232, 240, .72); }
.balance__value { margin-top: 8px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.balance__value small { font-size: 18px; font-weight: 600; opacity: .8; margin-right: 3px; }
.balance__meta { margin-top: 10px; font-size: 12.5px; color: rgba(226, 232, 240, .66); }
.balance__icon {
  position: absolute; right: 16px; top: 16px;
  opacity: .22;
}

/* ---- key/value list ---- */

.kv { display: grid; gap: 1px; background: var(--ink-100); border-radius: var(--radius-sm); overflow: hidden; }
.kv__row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 13px;
  background: var(--white);
}
.kv__k { flex: none; width: 130px; font-size: 12.5px; color: var(--ink-500); }
.kv__v { flex: 1; min-width: 0; font-size: 14px; font-weight: 550; word-break: break-word; }
.kv__v--mono { font-family: var(--mono); font-size: 13px; }

/* ---- service chips ---- */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  font-size: 13px; font-weight: 600;
  border-radius: 999px;
  background: var(--ink-100); color: var(--ink-500);
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-400); }
.chip.is-on { background: #ecfdf5; color: #065f46; }
.chip.is-on .chip__dot { background: var(--green-500); }
.chip.is-off { background: #fef2f2; color: #9f1239; }
.chip.is-off .chip__dot { background: var(--rose-500); }

.svc__msg { margin-top: 13px; font-size: 12.8px; color: var(--ink-500); line-height: 1.5; }

/* ---- banners ---- */

.banners { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 22px; }
.banners img {
  display: block; width: 100%; height: 132px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
  background: var(--ink-100);
}

/* ---- session strip ---- */

.session {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  margin-top: 22px; padding: 13px 16px;
  font-size: 12.5px; color: var(--ink-500);
  background: var(--white);
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius);
}
.session b { color: var(--ink-700); font-weight: 650; }
.session__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }

/* =========================================================================
   Standalone message pages (error / session expired)
   ========================================================================= */

.notice {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 24px;
  background: var(--navy-900);
}
.notice__card {
  width: 100%; max-width: 420px;
  padding: 34px 28px 28px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.notice__icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fef2f2; color: var(--rose-500);
}
.notice__icon--warn { background: #fffbeb; color: var(--amber-400); }
.notice__title { font-size: 21px; font-weight: 700; letter-spacing: -.018em; margin-bottom: 8px; }
.notice__text { font-size: 14px; color: var(--ink-500); margin-bottom: 22px; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__panel { background: var(--navy-900); padding: 28px 18px; align-items: flex-start; }
  .panel { margin-top: 18px; max-width: 460px; }
  .panel__logo { display: flex; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }

  .auth__panel { padding: 18px 14px 34px; }
  .panel { padding: 26px 18px 22px; border-radius: 18px; }
  .panel__title { font-size: 22px; }

  .stepper__item em { display: none; }
  .stepper__item { flex: 0 0 auto; }
  .stepper { justify-content: center; gap: 10px; }

  .field__input { height: 50px; font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  .field__input--otp { font-size: 20px; letter-spacing: .3em; }
  .btn { height: 52px; }

  .gate__card { padding: 26px 20px 20px; }
  .gate__title { font-size: 18px; }

  .topbar__inner { height: 56px; padding: 0 14px; gap: 10px; }
  .topbar__names { display: none; }
  .topbar__who { padding: 4px; background: none; }
  .wrap { padding: 18px 14px 44px; }
  .page__title { font-size: 22px; }
  .card { padding: 16px; border-radius: 16px; }
  .balance__value { font-size: 27px; }
  .kv__row { flex-direction: column; gap: 2px; }
  .kv__k { width: auto; }
  .banners img { height: 112px; }
}

@media (max-width: 380px) {
  .field__input--otp { letter-spacing: .2em; }
  .segmented__btn { font-size: 13px; }
}

/* Users who ask for less motion get none of it. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================================
   ACCENT PALETTES
   Each accent redefines only the brand tokens, so every button, link, focus
   ring and active nav item follows along. Shades are chosen so white text on
   --brand-500 clears 4.5:1 - an accent picker is not a licence to ship
   unreadable buttons.
   ========================================================================= */

:root,
:root[data-accent="indigo"] {
  --brand-300: #93b4fd;
  --brand-400: #3b82f6;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-900: #16307a;
  --brand-soft: rgba(37, 99, 235, .16);
  --brand-glow: rgba(37, 99, 235, .32);
  --ring: 0 0 0 3px rgba(37, 99, 235, .28);
}

:root[data-accent="teal"] {
  --brand-300: #5eead4;
  --brand-400: #0d9488;
  --brand-500: #0f766e;
  --brand-600: #115e59;
  --brand-900: #10403b;
  --brand-soft: rgba(15, 118, 110, .16);
  --brand-glow: rgba(15, 118, 110, .32);
  --ring: 0 0 0 3px rgba(15, 118, 110, .28);
}

:root[data-accent="violet"] {
  --brand-300: #c4b5fd;
  --brand-400: #7c3aed;
  --brand-500: #6d28d9;
  --brand-600: #5b21b6;
  --brand-900: #3c1d84;
  --brand-soft: rgba(109, 40, 217, .16);
  --brand-glow: rgba(109, 40, 217, .32);
  --ring: 0 0 0 3px rgba(109, 40, 217, .28);
}

:root[data-accent="amber"] {
  --brand-300: #fcd34d;
  --brand-400: #d97706;
  --brand-500: #b45309;
  --brand-600: #92400e;
  --brand-900: #6b3107;
  --brand-soft: rgba(180, 83, 9, .16);
  --brand-glow: rgba(180, 83, 9, .32);
  --ring: 0 0 0 3px rgba(180, 83, 9, .30);
}

:root[data-accent="rose"] {
  --brand-300: #fda4af;
  --brand-400: #f43f5e;
  --brand-500: #e11d48;
  --brand-600: #be123c;
  --brand-900: #7a1030;
  --brand-soft: rgba(225, 29, 72, .16);
  --brand-glow: rgba(225, 29, 72, .32);
  --ring: 0 0 0 3px rgba(225, 29, 72, .28);
}

.btn--primary { box-shadow: 0 6px 18px var(--brand-glow); }
.btn--primary:hover { box-shadow: 0 9px 24px var(--brand-glow); }
/* The wallet card follows the accent; the AEPS card keeps its own emerald so
   the two balances stay visually distinct whatever accent is chosen. */
.balance { background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); }
.balance--aeps { background: linear-gradient(135deg, #0f766e, #06423a); }

/* =========================================================================
   DARK THEME
   Every surface in this stylesheet is painted from a token, so dark mode is
   mostly a matter of remapping them. The rules below cover the handful of
   places that legitimately needed a literal colour.
   ========================================================================= */

:root[data-theme="dark"] {
  --white:    #131c2e;
  --ink-50:   #0a101c;
  --ink-100:  #1b2536;
  --ink-200:  #29344a;
  --ink-400:  #75859f;
  --ink-500:  #9aa8bf;
  --ink-700:  #c8d2e2;
  --ink-900:  #eef2f8;

  --navy-800: #101828;
  --navy-900: #070c16;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .34);
  --shadow:    0 10px 30px rgba(0, 0, 0, .42);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .58);
}

:root[data-theme="dark"] .alert       { background: #2a1620; color: #fecdd3; }
:root[data-theme="dark"] .alert--ok   { background: #11291d; color: #bbf7d0; }
:root[data-theme="dark"] .alert--warn { background: #2b2113; color: #fde68a; }

:root[data-theme="dark"] .ticker { background: #241c10; border-bottom-color: #4a3a17; color: #fcd77a; }

:root[data-theme="dark"] .chip        { background: var(--ink-100); color: var(--ink-500); }
:root[data-theme="dark"] .chip.is-on  { background: #10291f; color: #86efac; }
:root[data-theme="dark"] .chip.is-off { background: #2a1620; color: #fda4af; }

:root[data-theme="dark"] .gate__icon       { background: var(--brand-soft); color: var(--brand-300); }
:root[data-theme="dark"] .gate__help       { background: #241c10; }
:root[data-theme="dark"] .gate__help-title { color: #fcd77a; }
:root[data-theme="dark"] .gate__steps      { color: #e4c98c; }

:root[data-theme="dark"] .notice__icon       { background: #2a1620; }
:root[data-theme="dark"] .notice__icon--warn { background: #2b2113; }

:root[data-theme="dark"] .field__input         { background: #0e1626; }
:root[data-theme="dark"] .field__input:hover   { border-color: #3a475f; }
:root[data-theme="dark"] .segmented__btn.is-on { background: #0e1626; }
:root[data-theme="dark"] .session              { background: var(--white); }
:root[data-theme="dark"] .banners img          { background: var(--ink-100); }

/* =========================================================================
   APP SHELL - sidebar + main column
   ========================================================================= */

.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.shell__main { min-width: 0; display: flex; flex-direction: column; }

/* ---- sidebar ---- */

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--navy-800);
  color: rgba(255, 255, 255, .88);
  border-right: 1px solid rgba(255, 255, 255, .07);
  z-index: 50;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 18px;
  flex: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar__brand svg { color: var(--brand-300); flex: none; }
.sidebar__brand > span { flex: 1; min-width: 0; }

.sidebar__close {
  display: none;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 0; border-radius: 9px;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
}
.sidebar__close:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.nav { flex: 1; overflow-y: auto; padding: 16px 12px; }

.nav__label {
  padding: 0 10px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, .42);
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 550;
  color: rgba(226, 232, 240, .78);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav__link svg { flex: none; opacity: .85; }
.nav__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.nav__link.is-active {
  background: var(--brand-500);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.nav__link.is-active svg { opacity: 1; }

.sidebar__foot {
  flex: none;
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.usercard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
}
.usercard__text { min-width: 0; line-height: 1.25; }
.usercard__name {
  display: block;
  font-size: 13.5px; font-weight: 650; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.usercard__role { display: block; font-size: 11.5px; color: rgba(226, 232, 240, .58); }

.btn--signout-block { width: 100%; justify-content: center; }

.sidebar__backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(7, 12, 22, .6);
}
.sidebar__backdrop[hidden] { display: none; }

/* ---- top bar, now inside the main column ---- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  color: var(--ink-900);
  box-shadow: none;
}
.topbar__inner {
  max-width: none;
  margin: 0;
  height: 62px;
  padding: 0 24px;
  display: flex; align-items: center; gap: 10px;
}
.topbar__title { font-size: 16px; font-weight: 650; letter-spacing: -.012em; color: var(--ink-900); }
.topbar__burger { display: none; }

.iconbtn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink-500);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.iconbtn:hover { background: var(--ink-100); color: var(--ink-900); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun  { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

/* Clears the pill styling the old dark top bar used. */
.topbar__who { display: flex; align-items: center; padding: 0; background: none; }

.avatar--sm { width: 30px; height: 30px; font-size: 12px; }
.avatar--lg { width: 62px; height: 62px; font-size: 24px; flex: none; }

/* =========================================================================
   Pieces used by the new pages
   ========================================================================= */

.card__link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px;
  font-size: 13px; font-weight: 650;
  color: var(--brand-500);
  text-decoration: none;
}
.card__link:hover { gap: 8px; }

.field__hint { margin-top: 10px; font-size: 12.5px; color: var(--ink-500); }
.field__hint[hidden] { display: none; }

.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; }

.kv__v--wrap { word-break: break-all; }
.kv__v--muted { color: var(--ink-400); font-weight: 400; }

.chips--tight { gap: 6px; margin-top: 10px; }

.grid--settings { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---- profile hero ---- */

.profile__hero {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 18px;
}
.profile__ident { min-width: 0; }
.profile__name { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.profile__role { font-size: 13.5px; color: var(--ink-500); margin-top: 2px; }

/* ---- appearance chooser ---- */

.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.choice__item {
  padding: 10px;
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.choice__item:hover { border-color: var(--ink-400); }
.choice__item.is-on { border-color: var(--brand-500); box-shadow: var(--ring); }

.choice__swatch {
  display: block;
  height: 46px;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 9px;
  border: 1px solid var(--ink-200);
}
.choice__swatch--light { background: #f8fafc; }
.choice__swatch--dark  { background: #0a101c; border-color: #29344a; }
.choice__swatch--auto  { background: linear-gradient(105deg, #f8fafc 50%, #0a101c 50%); }

.choice__bar { display: block; height: 6px; border-radius: 3px; background: var(--brand-400); margin-bottom: 5px; }
.choice__bar--short { width: 58%; background: var(--ink-400); }
.choice__swatch--dark .choice__bar--short { background: #3d4c66; }

.choice__name { font-size: 13px; font-weight: 600; color: var(--ink-700); }

/* ---- accent swatches ---- */

.swatches { display: flex; flex-wrap: wrap; gap: 11px; }

.swatch {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
  transition: transform .14s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2.5px solid var(--ink-900);
}

.swatch--indigo { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.swatch--teal   { background: linear-gradient(135deg, #0d9488, #115e59); }
.swatch--violet { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.swatch--amber  { background: linear-gradient(135deg, #d97706, #92400e); }
.swatch--rose   { background: linear-gradient(135deg, #f43f5e, #be123c); }

/* ---- live preview ---- */

.preview {
  margin: 18px 0 14px;
  padding: 14px;
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius);
}
.preview__label {
  display: block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 10px;
}
.preview__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.preview__link { font-size: 13.5px; font-weight: 600; color: var(--brand-500); }

/* =========================================================================
   Responsive - shell
   ========================================================================= */

@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }

  .sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 268px; max-width: 84vw;
    height: auto;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }

  .sidebar__close { display: inline-flex; }
  .topbar__burger { display: inline-flex; }

  /* Stop the page scrolling behind the open drawer. */
  body.nav-open { overflow: hidden; }
}

@media (min-width: 981px) {
  .sidebar { transform: none; }
  .sidebar__backdrop { display: none; }
}

@media (max-width: 620px) {
  .topbar__inner { height: 56px; padding: 0 14px; gap: 8px; }
  .topbar__title { font-size: 15px; }

  .choice { gap: 8px; }
  .choice__swatch { height: 38px; padding: 7px; }
  .choice__name { font-size: 12px; }

  .swatch { width: 38px; height: 38px; }

  .profile__hero { gap: 14px; }
  .avatar--lg { width: 52px; height: 52px; font-size: 20px; }
  .profile__name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* =========================================================================
   Service modules
   ========================================================================= */

.nav__label--gap { margin-top: 18px; }

/* "not connected yet" panel on a service page */
.pending {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius-lg);
}

.pending__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--ink-100);
  color: var(--ink-500);
}

.pending__body { min-width: 0; }
.pending__title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 5px; }
.pending__text { font-size: 13px; line-height: 1.55; color: var(--ink-500); }

.pending__text code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--ink-100);
  color: var(--ink-700);
}

/* quick-launch tiles on the dashboard */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink-900);
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { border-color: var(--brand-400); transform: translateY(-2px); }

.tile__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-500);
}

.tile__text { min-width: 0; line-height: 1.3; }
.tile__name { display: block; font-size: 14px; font-weight: 650; }
.tile__sub { display: block; font-size: 11.5px; color: var(--ink-400); }

@media (max-width: 620px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px; gap: 9px; }
  .tile__icon { width: 34px; height: 34px; }
  .tile__name { font-size: 13px; }
  .pending { padding: 14px; gap: 11px; }
}

/* =========================================================================
   AEPS module
   ========================================================================= */

.aeps { margin-top: 4px; }

/* ---- device bar ---- */

.device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--ink-400);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.device.is-ready { border-left-color: var(--green-500); }
.device.is-missing { border-left-color: var(--amber-400); }

.device__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--ink-100);
  color: var(--ink-500);
}
.device.is-ready .device__icon { background: #ecfdf5; color: #047857; }
:root[data-theme="dark"] .device.is-ready .device__icon { background: #10291f; color: #86efac; }

.device__text { flex: 1; min-width: 0; line-height: 1.3; }
.device__name { display: block; font-size: 14px; font-weight: 650; }
.device__hint { display: block; font-size: 12px; color: var(--ink-500); }

.icon-voice-off { display: none; }
#voiceBtn.is-muted .icon-voice-on { display: none; }
#voiceBtn.is-muted .icon-voice-off { display: block; }
#voiceBtn.is-muted { color: var(--amber-400); }

/* ---- readiness flow ---- */

.flow { display: grid; gap: 4px; }

.flow__step {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-100);
}
.flow__step:first-child { border-top: 0; padding-top: 4px; }

.flow__badge {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  background: var(--ink-100); color: var(--ink-400);
}
.flow__step.is-current .flow__badge { background: var(--brand-500); color: #fff; }
.flow__step.is-done .flow__badge { background: var(--green-500); color: #fff; }

.flow__body { flex: 1; min-width: 0; }
.flow__title { font-size: 14.5px; font-weight: 650; margin-bottom: 3px; }
.flow__state { font-size: 13px; color: var(--ink-500); }
.flow__step.is-done .flow__state { color: #047857; }
:root[data-theme="dark"] .flow__step.is-done .flow__state { color: #86efac; }

.flow__actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: var(--ink-50);
  border-radius: var(--radius);
}
.flow__actions[hidden] { display: none; }
:root[data-theme="dark"] .flow__actions { background: #0e1626; }

#gateCard.is-collapsed .flow__step:not(.is-done) { display: none; }

.field--inline { margin-bottom: 0; }
.field--inline .field__input { height: 44px; }

.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
}
.field__input--mono { font-family: var(--mono); letter-spacing: .06em; }

/* ---- tabs ---- */

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  background: var(--ink-100);
  border-radius: var(--radius);
}

.tabs__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-500);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tabs__btn svg { flex: none; }
.tabs__btn:hover { color: var(--ink-900); }
.tabs__btn.is-on {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

/* In dark mode --white is darker than --ink-100, so the active tab would
   recede instead of standing out. Give it a lighter surface of its own. */
:root[data-theme="dark"] .tabs { background: #0e1626; }
:root[data-theme="dark"] .tabs__btn.is-on { background: #2c3950; color: #fff; }
:root[data-theme="dark"] .segmented { background: #0e1626; }
:root[data-theme="dark"] .segmented__btn.is-on { background: #2c3950; color: #fff; }

.tabs__lead { font-size: 13.5px; color: var(--ink-500); margin-bottom: 18px; }

/* ---- form ---- */

.formgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px;
}

.actionrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.otpbox {
  margin: 4px 0 18px;
  padding: 13px 14px;
  background: var(--ink-50);
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius);
}
.otpbox[hidden] { display: none; }
:root[data-theme="dark"] .otpbox { background: #0e1626; }

.otpbox__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.otpbox__state { font-size: 13px; color: var(--ink-500); }

.spinner--dark { border-color: rgba(100, 116, 139, .3); border-top-color: var(--ink-700); }

/* ---- receipt ---- */

.receipt { margin-top: 18px; }
.receipt[hidden] { display: none; }

.receipt__head { margin-bottom: 16px; }

.receipt__badge {
  display: inline-block;
  padding: 4px 11px;
  margin-bottom: 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--ink-100);
  color: var(--ink-500);
}
.receipt__badge--ok { background: #ecfdf5; color: #065f46; }
.receipt__badge--pending { background: #fffbeb; color: #92400e; }
.receipt__badge--failed { background: #fef2f2; color: #9f1239; }

:root[data-theme="dark"] .receipt__badge--ok { background: #10291f; color: #86efac; }
:root[data-theme="dark"] .receipt__badge--pending { background: #2b2113; color: #fde68a; }
:root[data-theme="dark"] .receipt__badge--failed { background: #2a1620; color: #fda4af; }

.receipt__title { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.receipt__msg { font-size: 13.5px; color: var(--ink-500); margin-top: 4px; }

.statement { margin-top: 16px; }
.statement__title {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 9px;
}
.statement__rows { display: grid; gap: 1px; background: var(--ink-100); border-radius: var(--radius-sm); overflow: hidden; }
.statement__row {
  padding: 9px 12px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

/* ---- responsive ---- */

@media (max-width: 760px) {
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .device { flex-wrap: wrap; padding: 12px; }
  .device__text { flex: 1 1 100%; order: 3; }
  .tabs__btn { font-size: 12.5px; padding: 8px 6px; }
  .tabs__btn svg { display: none; }
  .formgrid { grid-template-columns: minmax(0, 1fr); }
  .flow__actions { padding: 12px; }
}

/* ---- print: receipt only ---- */

@media print {
  .sidebar, .sidebar__backdrop, .topbar, .ticker,
  .device, #gateCard, .tabs, .tabs__lead, .formgrid,
  .actionrow, .otpbox, .alert, .page__head, .grid--balances,
  .pending, .panel__note { display: none !important; }

  .shell { display: block; }
  .wrap { padding: 0; max-width: none; }
  .receipt { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; color: #000; }
}

/* =========================================================================
   Diagnostics panel (Settings) - setup aid, off by default
   ========================================================================= */

.diag { margin-top: 18px; }
.diag__rows { margin-top: 14px; max-height: 480px; overflow-y: auto; }

.kv__k--wide { width: 168px; }

.kv__row--note { position: relative; }

.kv__drives {
  flex: none;
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-500);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .kv__k--wide { width: auto; }
  .kv__drives { align-self: flex-start; margin-top: 4px; white-space: normal; }
}

/* =========================================================================
   Full-width working screens (AEPS)
   ========================================================================= */

/* .shell__main is a flex column, where an auto-margined child shrinks to fit
   its content instead of filling the row. Give the content wrapper the full
   row explicitly; .wrap's max-width still centres ordinary pages. */
.shell__main > main { width: 100%; }

.wrap--full { max-width: none; margin: 0; padding-left: 28px; padding-right: 28px; }

/* Side and main stack on small screens, in source order: scanner and
   readiness first, then transactions. */
.aeps__cols { display: block; }

/* Before eKYC/2FA are done the readiness card is the whole job, so keep it
   to a comfortable reading width rather than a very wide strip. */
.aeps:not(.is-ready) .aeps__side { max-width: 760px; }

@media (min-width: 1200px) {
  /* Once ready: transactions take the room, scanner and status sit beside. */
  .aeps.is-ready .aeps__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "main side";
    gap: 20px;
    align-items: start;
  }
  .aeps.is-ready .aeps__main { grid-area: main; min-width: 0; }
  .aeps.is-ready .aeps__side {
    grid-area: side;
    position: sticky;
    top: 80px;                                  /* below the sticky top bar */
  }
  .aeps.is-ready .aeps__side .device { flex-wrap: wrap; }
  .aeps.is-ready .aeps__side .device__text { flex: 1 1 calc(100% - 60px); }

  /* The form has room for four fields across. */
  .aeps .formgrid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

  /* Receipt rows side by side instead of one long list. */
  .aeps .receipt .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; }
}

@media (min-width: 1600px) {
  .aeps.is-ready .aeps__cols { grid-template-columns: minmax(0, 1fr) 400px; }
}

@media (max-width: 620px) {
  .wrap--full { padding-left: 14px; padding-right: 14px; }
}

/* =========================================================================
   AEPS: amount in words, big balance, next step, share, confirmation
   ========================================================================= */

/* Typed amount, in words - green, bold, italic, directly under the field. */
.amount-words {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #15803d;
  line-height: 1.4;
}
.amount-words[hidden] { display: none; }
:root[data-theme="dark"] .amount-words { color: #4ade80; }

/* ---- balance enquiry: the balance, big ---- */
.receipt__balance {
  text-align: center;
  padding: 22px 16px 18px;
  margin: 4px 0 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
}
.receipt__balance[hidden] { display: none; }

.receipt__balance-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #047857;
}
.receipt__balance-value {
  display: block;
  margin: 6px 0 4px;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: #065f46;
  word-break: break-word;
}
.receipt__balance-bank { font-size: 13px; color: #047857; }

:root[data-theme="dark"] .receipt__balance { background: linear-gradient(135deg, #0f2a20, #0b3326); border-color: #14532d; }
:root[data-theme="dark"] .receipt__balance-label,
:root[data-theme="dark"] .receipt__balance-bank { color: #6ee7b7; }
:root[data-theme="dark"] .receipt__balance-value { color: #bbf7d0; }

/* ---- "withdraw cash?" prompt ---- */
.receipt__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid var(--ink-200);
}
.receipt__next[hidden] { display: none; }
.receipt__next-text { min-width: 0; }
.receipt__next-q { font-size: 14.5px; font-weight: 650; color: var(--ink-900); }
.receipt__next-hi { font-size: 13px; color: var(--ink-500); margin-top: 2px; }

.receipt__actions .btn { gap: 6px; }

/* Off-screen helper for the copy fallback. */
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---- confirmation dialog (reuses the .gate overlay) ---- */
.confirm { max-width: 420px; text-align: left; }
.confirm .gate__title { text-align: center; }
.confirm .gate__text { text-align: center; margin: 14px 0 16px; }

.confirm__amount {
  text-align: center;
  margin: 8px 0 2px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.confirm__words {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  font-style: italic;
  color: #15803d;
  margin-bottom: 16px;
}
:root[data-theme="dark"] .confirm__words { color: #4ade80; }

.confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

@media (max-width: 620px) {
  .receipt__next { flex-direction: column; align-items: stretch; }
  .receipt__next .btn { width: 100%; }
  .confirm__amount { font-size: 32px; }
}

@media print {
  .receipt__next, #shareState, .gate { display: none !important; }
  .receipt__balance { background: none; border: 1px solid #999; }
  .receipt__balance-value, .receipt__balance-label, .receipt__balance-bank { color: #000; }
}

/* =========================================================================
   AEPS result: coloured banner, large reason, clearer alerts
   ========================================================================= */

.receipt__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin: -4px -4px 16px;
  border-radius: var(--radius);
  background: var(--ink-100);
}
.receipt__headtext { min-width: 0; }
.receipt__head .receipt__badge { margin-bottom: 4px; }
.receipt__title { font-size: 20px; }

.receipt__icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--ink-400);
}
.receipt__icon::before { content: "i"; }

.receipt--ok .receipt__head      { background: #ecfdf5; }
.receipt--ok .receipt__icon      { background: #16a34a; }
.receipt--ok .receipt__icon::before { content: "\2713"; }
.receipt--ok .receipt__title     { color: #065f46; }

.receipt--failed .receipt__head  { background: #fef2f2; }
.receipt--failed .receipt__icon  { background: #dc2626; }
.receipt--failed .receipt__icon::before { content: "\2715"; }
.receipt--failed .receipt__title { color: #991b1b; }

.receipt--pending .receipt__head { background: #fffbeb; }
.receipt--pending .receipt__icon { background: #d97706; }
.receipt--pending .receipt__icon::before { content: "!"; }
.receipt--pending .receipt__title { color: #92400e; }

:root[data-theme="dark"] .receipt--ok .receipt__head      { background: #0f2a20; }
:root[data-theme="dark"] .receipt--ok .receipt__title     { color: #86efac; }
:root[data-theme="dark"] .receipt--failed .receipt__head  { background: #2a1418; }
:root[data-theme="dark"] .receipt--failed .receipt__title { color: #fca5a5; }
:root[data-theme="dark"] .receipt--pending .receipt__head { background: #2b2113; }
:root[data-theme="dark"] .receipt--pending .receipt__title { color: #fde68a; }

/* ---- the reason, large ---- */
.receipt__reason {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1.5px solid #fecaca;
  border-left: 5px solid #dc2626;
  background: #fff5f5;
}
.receipt__reason[hidden] { display: none; }
.receipt--pending .receipt__reason { border-color: #fde68a; border-left-color: #d97706; background: #fffcf2; }

.receipt__reason-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b91c1c;
  margin-bottom: 4px;
}
.receipt--pending .receipt__reason-label { color: #b45309; }

.receipt__reason-main {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.35;
  color: #7f1d1d;
  word-break: break-word;
}
.receipt--pending .receipt__reason-main { color: #78350f; }

.receipt__reason-hi {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #991b1b;
}
.receipt--pending .receipt__reason-hi { color: #92400e; }

.receipt__reason-code {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-500);
}

:root[data-theme="dark"] .receipt__reason { background: #2a1418; border-color: #5b1f25; border-left-color: #ef4444; }
:root[data-theme="dark"] .receipt--pending .receipt__reason { background: #2b2113; border-color: #5c4513; border-left-color: #f59e0b; }
:root[data-theme="dark"] .receipt__reason-label { color: #fca5a5; }
:root[data-theme="dark"] .receipt__reason-main { color: #fee2e2; }
:root[data-theme="dark"] .receipt__reason-hi { color: #fca5a5; }
:root[data-theme="dark"] .receipt--pending .receipt__reason-label,
:root[data-theme="dark"] .receipt--pending .receipt__reason-hi { color: #fcd34d; }
:root[data-theme="dark"] .receipt--pending .receipt__reason-main { color: #fef3c7; }

/* ---- alerts on the AEPS page: bigger and bolder so they are not missed ---- */
.aeps .alert { font-size: 15px; font-weight: 600; padding: 13px 16px; border-left-width: 5px; }

@media (max-width: 620px) {
  .receipt__icon { width: 42px; height: 42px; font-size: 22px; }
  .receipt__title { font-size: 18px; }
  .receipt__reason-main { font-size: 17px; }
}

@media print {
  .receipt__head, .receipt__reason { background: none !important; }
  .receipt__icon { border: 2px solid #000; color: #000; background: none !important; }
  .receipt__reason { border: 1.5px solid #000; }
  .receipt__reason-main, .receipt__reason-hi, .receipt__reason-label, .receipt__title { color: #000 !important; }
}

/* =========================================================================
   AEPS slip - branded, sectioned, prints cleanly in black and white
   ========================================================================= */

.receipt { padding: 0; overflow: hidden; }

.slip { padding-bottom: 2px; }

/* ---- 1. company band ---- */
.slip__brand {
  text-align: center;
  padding: 22px 20px 18px;
  background: linear-gradient(135deg, #0b1b3a 0%, #1b3a7d 100%);
  color: #fff;
}
.slip__logo { display: inline-flex; align-items: center; gap: 10px; }
.slip__logo svg { flex: none; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.slip__logo-name { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.slip__company {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.slip__contact {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 16px;
  font-size: 12px;
  color: rgba(226, 232, 240, .82);
}

/* ---- which slip this is ---- */
.slip__type {
  text-align: center;
  padding: 14px 16px 12px;
  border-bottom: 2px dashed var(--ink-200);
}
.slip__type-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-600);
}
:root[data-theme="dark"] .slip__type-name { color: var(--brand-300); }
.slip__type-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-500); }

/* outcome banner, reason and big balance sit inside the slip */
.slip > .receipt__head { margin: 16px 16px 12px; }
.slip > .receipt__reason,
.slip > .receipt__balance { margin: 0 16px 14px; }

/* ---- 2/3/4. sections ---- */
.slip__sec {
  padding: 14px 20px 16px;
  border-top: 1.5px dashed var(--ink-200);
}
.slip__sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-500);
}
:root[data-theme="dark"] .slip__sec-title { color: var(--brand-300); }
.slip__sec-title::after { content: ""; flex: 1; height: 1px; background: var(--ink-200); }

.slip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}
.slip__row { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.slip__k { font-size: 11.5px; color: var(--ink-500); }
.slip__v { font-size: 14.5px; font-weight: 650; color: var(--ink-900); word-break: break-word; }
.slip__v--mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; }

.slip__row--amount .slip__v { font-size: 20px; font-weight: 800; }
.slip__row--status.slip__row--ok .slip__v      { color: #15803d; }
.slip__row--status.slip__row--failed .slip__v  { color: #dc2626; }
.slip__row--status.slip__row--pending .slip__v { color: #d97706; }
:root[data-theme="dark"] .slip__row--status.slip__row--ok .slip__v { color: #4ade80; }
:root[data-theme="dark"] .slip__row--status.slip__row--failed .slip__v { color: #f87171; }

.slip > .statement { padding: 14px 20px 16px; margin: 0; border-top: 1.5px dashed var(--ink-200); }

.slip__foot {
  padding: 12px 20px 16px;
  border-top: 1.5px dashed var(--ink-200);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-400);
}

/* ---- below the slip: next steps and actions ---- */
.receipt > .receipt__next { margin: 16px 16px 4px; }
.receipt__next-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.receipt > .receipt__actions { padding: 12px 16px 4px; margin: 0; }
.receipt > #shareState { padding: 0 16px 14px; }

@media (max-width: 620px) {
  .slip__brand { padding: 18px 14px 14px; }
  .slip__logo-name { font-size: 22px; }
  .slip__sec { padding: 12px 14px 14px; }
  .slip__grid { gap: 10px 14px; }
  .receipt__next-btns { width: 100%; }
  .receipt__next-btns .btn { flex: 1; }
}

@media (max-width: 380px) {
  .slip__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- print: only the slip, black on white, no ink-heavy bands ---- */
@media print {
  .receipt > .receipt__next, .receipt > .receipt__actions, .receipt > #shareState { display: none !important; }
  .receipt { overflow: visible; }
  .slip { max-width: 520px; margin: 0 auto; border: 1.5px solid #000; }
  .slip__brand { background: none !important; color: #000; border-bottom: 2px solid #000; }
  .slip__logo-name, .slip__company, .slip__contact, .slip__type-name,
  .slip__sec-title, .slip__k, .slip__v, .slip__foot, .slip__type-sub { color: #000 !important; }
  .slip__sec, .slip__type, .slip__foot, .slip > .statement { border-color: #000 !important; }
  .slip__sec-title::after { background: #000; }
}

/* =========================================================================
   AEPS provider bank (Airtel / Jio / NSDL)
   ========================================================================= */

/* Until a bank is chosen (or while changing it) only the chooser shows. */
.aeps--no-provider .aeps__cols { display: none !important; }

.provider { margin-bottom: 18px; }
.provider[hidden] { display: none; }

.provider__lead { font-size: 14px; color: var(--ink-500); margin-bottom: 16px; }
.provider__lead-hi { display: block; margin-top: 2px; font-weight: 600; color: var(--ink-700); }

.provider__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.provider__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px 18px;
  background: var(--white);
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.provider__opt:hover { border-color: var(--brand-400); transform: translateY(-2px); box-shadow: var(--shadow); }
.provider__opt.is-on { border-color: var(--brand-500); box-shadow: var(--ring); }

.provider__name { font-size: 16px; font-weight: 750; color: var(--ink-900); }
.provider__cta { font-size: 13px; font-weight: 650; color: var(--brand-500); }

/* Logo marks: a coloured tile with the bank's short name. Drawn in CSS -
   no third-party images, so the CSP stays img-src 'self'. */
.provider__logo {
  display: inline-grid;
  place-items: center;
  min-width: 76px;
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  background: var(--ink-500);
}
.provider__logo--airtel { background: linear-gradient(135deg, #ff1f1f, #c10000); text-transform: lowercase; }
.provider__logo--jio    { background: linear-gradient(135deg, #1b4fe0, #0a2a9c); }
.provider__logo--nsdl   { background: linear-gradient(135deg, #0b3d91, #062456); box-shadow: inset 0 -4px 0 #f58220; }

.provider__logo--sm { min-width: 52px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 13px; }

/* ---- chosen-bank bar ---- */
.provider-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.provider-bar[hidden] { display: none; }
.provider-bar__text { flex: 1; min-width: 0; line-height: 1.3; }
.provider-bar__label { display: block; font-size: 11.5px; color: var(--ink-500); }
.provider-bar strong { font-size: 15px; color: var(--ink-900); }

@media (max-width: 620px) {
  .provider__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .provider__opt { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; gap: 14px; }
  .provider__opt .provider__logo { min-width: 64px; height: 44px; font-size: 16px; }
  .provider__opt .provider__cta { margin-left: auto; }
  .provider__name { font-size: 15px; }
}

@media print {
  .provider, .provider-bar { display: none !important; }
}

/* =========================================================================
   Money Transfer (DMT): three channels, beneficiaries, 5000-slot payments.
   No inline styles anywhere (style-src 'self'), so colours are classes.
   ========================================================================= */

.dmt [hidden] { display: none !important; }

.dmt-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dmt-top .field { margin-bottom: 0; flex: 0 1 300px; }
.dmt-top .btn { height: 48px; }

.dmt-chs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }

.dmt-ch {
  position: relative;
  padding: 16px;
  background: var(--white);
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-lg);
  min-height: 158px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dmt-ch.is-ok { cursor: pointer; }
.dmt-ch.is-ok:hover { border-color: var(--brand-400); }
.dmt-ch.is-sel { border-color: var(--brand-500); box-shadow: var(--ring); }
.dmt-ch__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dmt-ch__name { font-weight: 750; color: var(--ink-900); }
.dmt-ch__label { font-size: 12.5px; color: var(--ink-500); margin-top: 8px; }
.dmt-ch__big { font-size: 24px; font-weight: 800; color: var(--green-500); line-height: 1.2; }
.dmt-ch__meta { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.dmt-ch__msg { font-size: 13px; color: var(--ink-500); margin: 8px 0 12px; }
.dmt-ch__err { font-size: 13px; color: var(--rose-500); margin-top: 8px; font-weight: 600; }

.dmt-tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.dmt-tag--ok { background: #dcfce7; color: #166534; }
.dmt-tag--none { background: #fef3c7; color: #92400e; }
.dmt-tag--err { background: #fee2e2; color: #991b1b; }
:root[data-theme="dark"] .dmt-tag--ok { background: #11291d; color: #86efac; }
:root[data-theme="dark"] .dmt-tag--none { background: #2b2113; color: #fde68a; }
:root[data-theme="dark"] .dmt-tag--err { background: #2a1620; color: #fecdd3; }

.dmt-spin {
  display: inline-block; width: 18px; height: 18px; vertical-align: middle;
  border: 3px solid var(--ink-200); border-top-color: var(--brand-500); border-radius: 50%;
  animation: dmtspin .8s linear infinite;
}
@keyframes dmtspin { to { transform: rotate(360deg); } }

.btn--sm.btn--ok   { background: linear-gradient(180deg, #22c55e, var(--green-500)); color: #fff; box-shadow: 0 5px 14px rgba(22, 163, 74, .28); }
.btn--sm.btn--warn { background: linear-gradient(180deg, #fbbf24, var(--amber-400)); color: #1f2937; }
.btn--sm.btn--soft { background: var(--ink-100); color: var(--ink-900); border: 1.5px solid var(--ink-200); }

/* remitter strip */
.dmt-who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.dmt-who__title { font-size: 17px; font-weight: 750; color: var(--ink-900); }
.dmt-who__sub { font-size: 14px; color: var(--ink-500); }
.dmt-who__lim { text-align: right; }

/* beneficiaries */
.dmt-bt { width: 100%; border-collapse: collapse; }
.dmt-bt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); padding: 8px 10px; border-bottom: 1px solid var(--ink-200); }
.dmt-bt td { padding: 11px 10px; border-bottom: 1px solid var(--ink-200); vertical-align: middle; }
.dmt-bt td.dmt-bt__panel { padding: 0; border-bottom: 0; }
.dmt-bank { display: flex; align-items: center; gap: 10px; }
.dmt-bank__name { font-weight: 650; }
.dmt-acct { font-family: var(--mono); font-size: 14px; font-weight: 800; color: var(--ink-900); }
.dmt-ifsc { font-size: 12px; color: var(--ink-500); font-family: var(--mono); }
.dmt-amt { width: 128px; height: 40px; padding: 0 12px; border: 1.5px solid var(--ink-200); border-radius: 10px; background: var(--white); color: var(--ink-900); font: inherit; }
.dmt-amt:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }

.dmt-logo {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 11px; overflow: hidden;
  display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; background: #64748b;
}
.dmt-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.dmt-bk--sbi { background: #1d4ed8; } .dmt-bk--hdfc { background: #004c8f; } .dmt-bk--icici { background: #f37321; }
.dmt-bk--axis { background: #97144d; } .dmt-bk--pnb { background: #a4123f; } .dmt-bk--bob { background: #f26522; }
.dmt-bk--can { background: #0072bc; } .dmt-bk--ubi { background: #c8102e; } .dmt-bk--kmb { background: #ed1c24; }
.dmt-bk--yes { background: #00518f; } .dmt-bk--ind { background: #8a1538; } .dmt-bk--idfc { background: #9c1d26; }
.dmt-bk--boi { background: #0b5ea8; } .dmt-bk--cbi { background: #d71920; } .dmt-bk--ib { background: #1b4f9c; }
.dmt-bk--iob { background: #003b7a; } .dmt-bk--uco { background: #0b4ea2; } .dmt-bk--ptm { background: #00a8dd; }
.dmt-bk--air { background: #e40000; } .dmt-bk--fino { background: #0f4c81; } .dmt-bk--ippb { background: #e30613; }
.dmt-bk--fed { background: #00a1e0; } .dmt-bk--rbl { background: #21409a; } .dmt-bk--bdn { background: #e31837; }

/* slots */
.dmt-slots { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 12px; margin: 4px 0 10px; }
.dmt-slots__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 650; }
.dmt-mode { height: 34px; padding: 0 10px; border: 1.5px solid var(--ink-200); border-radius: 9px; background: var(--white); color: var(--ink-900); font: inherit; }
.dmt-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--white); border: 1px solid var(--ink-200); border-radius: 12px; }
.dmt-slot__amt { min-width: 128px; font-weight: 800; font-size: 16px; }
.dmt-slot__amt small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-500); }
.dmt-slot__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dmt-otp { width: 132px; height: 38px; text-align: center; letter-spacing: 4px; font-weight: 700; border: 1.5px solid var(--ink-200); border-radius: 10px; background: var(--white); color: var(--ink-900); font: inherit; }
.dmt-otp:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.dmt-tick { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; line-height: 1; }
.dmt-tick--ok { background: var(--green-500); animation: dmtpop .45s ease; }
.dmt-tick--bad { background: var(--rose-500); }
.dmt-tick--wait { background: var(--amber-400); }
@keyframes dmtpop { 0% { transform: scale(.2); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.dmt-utr__k { font-size: 11.5px; color: var(--ink-500); }
.dmt-utr__v { font-family: var(--mono); font-weight: 750; color: #15803d; word-break: break-all; }
:root[data-theme="dark"] .dmt-utr__v { color: #4ade80; }
.dmt-err { color: var(--rose-500); font-size: 13px; font-weight: 600; }
.dmt-note { color: var(--ink-500); font-size: 13px; }
.dmt-printrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* onboarding dialog */
.dmt-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(7, 18, 48, .6); }
.dmt-modal__box { width: 100%; max-width: 440px; padding: 22px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.dmt-modal__title { font-size: 18px; font-weight: 750; margin-bottom: 14px; color: var(--ink-900); }
.dmt-modal__row { display: flex; gap: 10px; margin-top: 8px; }

@media (max-width: 720px) {
  .dmt-bt thead { display: none; }
  .dmt-bt, .dmt-bt tbody, .dmt-bt tr, .dmt-bt td { display: block; width: 100%; }
  .dmt-bt tr.dmt-row { padding: 10px 0; border-bottom: 1px solid var(--ink-200); }
  .dmt-bt td { border: 0; padding: 4px 10px; }
  .dmt-who__lim { text-align: left; }
}

/* ---- print: one slip for the whole payment (thermal 80 mm or A4) ---- */
.dmt-slip { display: none; }

@page dmtThermal { size: 80mm auto; margin: 2mm; }
@page dmtA4 { size: A4; margin: 12mm; }

@media print {
  body.dmt-printing .dmt > :not(#dmtSlip) { display: none !important; }
  body.dmt-printing #dmtSlip { display: block; color: #000; background: #fff; }
  body.dmt-print--thermal #dmtSlip { width: 72mm; font: 11px/1.35 "Courier New", monospace; }
  body.dmt-print--a4 #dmtSlip { max-width: 720px; margin: 0 auto; font: 13px/1.5 Arial, sans-serif; }
}

.dmt-slip h2 { margin: 0; text-align: center; font-size: 1.25em; }
.dmt-slip .c { text-align: center; }
.dmt-slip .r { text-align: right; }
.dmt-slip hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.dmt-slip .k { display: flex; justify-content: space-between; gap: 8px; }
.dmt-slip table { width: 100%; border-collapse: collapse; }
.dmt-slip th, .dmt-slip td { padding: 3px 2px; text-align: left; vertical-align: top; }
.dmt-slip td.r, .dmt-slip th.r { text-align: right; }
body.dmt-print--a4 .dmt-slip td, body.dmt-print--a4 .dmt-slip th { border-bottom: 1px solid #ccc; padding: 6px 8px; }

.provider__logo--fino { background: linear-gradient(135deg, #0f4c81, #0a2f52); box-shadow: inset 0 -4px 0 #f58220; }

/* beneficiary search */
.dmt-search { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.dmt-searchbox { flex: 0 1 380px; width: 100%; height: 42px; padding: 0 14px; border: 1.5px solid var(--ink-200); border-radius: 12px; background: var(--white); color: var(--ink-900); font: inherit; }
.dmt-searchbox:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.dmt-slots__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* payment popup */
body.dmt-noscroll { overflow: hidden; }
.dmt-modal__box--pay { max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; }
.dmt-pay__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.dmt-pay__head .dmt-modal__title { margin-bottom: 2px; }
.dmt-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--ink-100); color: var(--ink-700); font-size: 24px; line-height: 1; cursor: pointer; }
.dmt-x:hover { background: var(--ink-200); }
#dmtPayNote:empty { display: none; }
.dmt-modal__box--pay .dmt-slots { margin: 0; border: 0; padding: 0; background: transparent; }
/* amount box: red when Pay was pressed without a usable amount */
.dmt-amt--bad { border-color: var(--rose-500); background: #fef2f2; box-shadow: 0 0 0 3px rgba(225, 29, 72, .2); animation: dmtshake .32s ease; }
:root[data-theme="dark"] .dmt-amt--bad { background: #2a1620; }
.dmt-amt__msg { margin-top: 4px; font-size: 12px; }
@keyframes dmtshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* =========================================================================
   Language: the top-bar button, the Settings tabs and the language list
   ========================================================================= */
.iconbtn--lang { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 12px; text-decoration: none; }
.iconbtn__label { font-size: 12.5px; font-weight: 750; letter-spacing: .02em; }

.tabs3 { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 5px; background: var(--ink-100); border-radius: var(--radius); width: fit-content; max-width: 100%; }
.tabs3__tab { height: 38px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-500); font-weight: 650; font-size: 14px; cursor: pointer; }
.tabs3__tab:hover { color: var(--ink-900); }
.tabs3__tab.is-on { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-sm); }
[data-tab-for][hidden] { display: none !important; }

.langlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.langlist__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: 2px solid var(--ink-200); border-radius: var(--radius); background: var(--white); color: var(--ink-900); text-align: left; cursor: pointer; }
.langlist__item:hover { border-color: var(--brand-400); }
.langlist__item.is-on { border-color: var(--brand-500); box-shadow: var(--ring); }
.langlist__native { font-size: 18px; font-weight: 750; }
.langlist__name { font-size: 12.5px; color: var(--ink-500); }
.langlist__tick { position: absolute; top: 12px; right: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-500); color: #fff; font-size: 13px; font-weight: 800; }

/* add beneficiary */
.dmt-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; }
.dmt-search__add { margin-left: auto; }
.dmt-bankselect { width: 100%; margin-top: 8px; padding: 6px; border: 1.5px solid var(--ink-200); border-radius: 10px; background: var(--white); color: var(--ink-900); font: inherit; }
.dmt-bankselect[hidden] { display: none; }
.dmt-row--new td { animation: dmtnew 4s ease; }
@keyframes dmtnew { 0%, 70% { background: #dcfce7; } 100% { background: transparent; } }
:root[data-theme="dark"] .dmt-row--new td { animation-name: dmtnewdark; }
@keyframes dmtnewdark { 0%, 70% { background: #11291d; } 100% { background: transparent; } }
/* beneficiary verification */
.dmt-bn { font-weight: 650; }
.dmt-vcell { margin-top: 5px; }
.dmt-vbadge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 750; }
:root[data-theme="dark"] .dmt-vbadge { background: #11291d; color: #86efac; }
.dmt-vname { margin-top: 4px; font-size: 12.5px; color: #166534; }
:root[data-theme="dark"] .dmt-vname { color: #86efac; }
.dmt-vname .dmt-note { font-size: 11.5px; }
.dmt-vbtn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.dmt-vmsg { margin-top: 4px; font-size: 12px; }
/* =========================================================================
   Payment popup: every detail large and plain, the amount also in words
   ========================================================================= */
.dmt-modal__box--pay { max-width: 900px; padding: 24px; }
.dmt-pd { border: 2px solid var(--ink-200); border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 16px; background: var(--white); }
.dmt-pd__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px dashed var(--ink-200); }
.dmt-pd__label { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500); }
.dmt-pd__name { font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--ink-900); }
.dmt-pd__ver { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dmt-pd__amount { text-align: right; }
.dmt-pd__amt { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--ink-900); }

/* the amount written out: italic, green */
.dmt-words { margin-top: 4px; font-style: italic; font-weight: 650; font-size: 15.5px; color: #15803d; }
:root[data-theme="dark"] .dmt-words { color: #4ade80; }
.dmt-words--sm { margin-top: 2px; font-size: 13px; font-weight: 600; }

.dmt-pd__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 24px; padding: 16px 0; }
.dmt-pd__val { font-size: 21px; font-weight: 700; color: var(--ink-900); word-break: break-word; }
.dmt-pd__acct { font-family: var(--mono); font-size: 27px; font-weight: 800; letter-spacing: .04em; color: var(--ink-900); }
.dmt-pd__ifsc { font-family: var(--mono); font-size: 23px; font-weight: 800; letter-spacing: .04em; color: var(--ink-900); }
.dmt-pd__sub { font-size: 16px; font-weight: 600; color: var(--ink-500); }
.dmt-bank--lg { font-size: 21px; font-weight: 700; }
.dmt-bank--lg .dmt-logo { width: 50px; height: 50px; border-radius: 13px; font-size: 14px; }
.dmt-modechip { display: inline-block; padding: 4px 20px; border-radius: 99px; background: var(--brand-500); color: #fff; font-size: 21px; font-weight: 800; letter-spacing: .04em; }

.dmt-pd__mode { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 14px; border-top: 1px dashed var(--ink-200); }
.dmt-pd__mode .dmt-pd__label { margin: 0; }
.dmt-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--ink-100); border-radius: 12px; }
.dmt-seg__btn { height: 42px; min-width: 100px; padding: 0 22px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-700); font-size: 16px; font-weight: 800; cursor: pointer; }
.dmt-seg__btn:hover { color: var(--ink-900); }
.dmt-seg__btn.is-on { background: var(--brand-500); color: #fff; box-shadow: var(--shadow-sm); }

/* slots: larger amounts, each with its words */
.dmt-slot { padding: 14px 16px; }
.dmt-slot__amt { min-width: 190px; font-size: 24px; }
.dmt-slot__amt small { font-size: 12.5px; }
.dmt-slots__head { font-size: 16px; }

@media (max-width: 720px) {
  .dmt-pd__amount { text-align: left; }
  .dmt-pd__name { font-size: 24px; }
  .dmt-pd__amt { font-size: 34px; }
  .dmt-pd__acct { font-size: 22px; }
}
/* =========================================================================
   Add beneficiary dialog: bank search, account confirmation, two Add buttons
   ========================================================================= */
.dmt-modal__box { max-width: 500px; max-height: calc(100vh - 32px); overflow-y: auto; }

.ab-search { position: relative; }
.ab-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow-y: auto; background: var(--white); border: 1.5px solid var(--ink-200); border-radius: 14px; box-shadow: var(--shadow); }
.ab-list[hidden] { display: none; }
.ab-list__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-weight: 650; color: var(--ink-900); cursor: pointer; }
.ab-list__item:hover, .ab-list__item.is-active { background: var(--ink-100); }
.ab-list__item .dmt-logo { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }
.ab-list__none { padding: 12px; color: var(--ink-500); font-size: 14px; }

.ab-picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--ink-50); border: 1.5px solid var(--ink-200); border-radius: 14px; }
.ab-picked[hidden] { display: none; }
.ab-picked__bank { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-900); }

/* confirm account number: red until it matches, then green with a tick */
.ab-confirm { position: relative; }
.field__input.is-bad { border-color: var(--rose-500); background: #fef2f2; box-shadow: 0 0 0 3px rgba(225, 29, 72, .14); }
.field__input.is-ok { border-color: var(--green-500); background: #f0fdf4; box-shadow: 0 0 0 3px rgba(22, 163, 74, .16); padding-right: 48px; }
:root[data-theme="dark"] .field__input.is-bad { background: #2a1620; }
:root[data-theme="dark"] .field__input.is-ok { background: #11291d; }
.ab-tick { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-500); color: #fff; font-size: 15px; font-weight: 900; animation: dmtpop .35s ease; }
.ab-tick[hidden] { display: none; }
.ab-confirm__msg { margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--rose-500); }
.ab-confirm__msg[hidden] { display: none; }

.ab-actions { flex-wrap: wrap; }
.ab-actions .btn--sm { height: 42px; }
.ab-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* the charge question */
.ab-charge { margin: 4px 0 6px; font-size: 44px; font-weight: 800; line-height: 1.1; color: #b45309; }
:root[data-theme="dark"] .ab-charge { color: #fbbf24; }
.ab-confirm-text { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.ab-summary { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; padding: 10px 14px; background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: 12px; }
.ab-summary span { font-family: var(--mono); font-size: 14px; color: var(--ink-500); }
.ab-wait { display: flex; align-items: center; gap: 10px; padding: 18px 0; }

/* the beneficiary that was just added: stays marked for a few seconds */
.dmt-row--new td { background: #dcfce7; }
:root[data-theme="dark"] .dmt-row--new td { background: #11291d; }
.dmt-newtag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 99px; background: var(--green-500); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
/* =========================================================================
   Remitter: the mobile number box stands out, and the list header shows the
   remitter's name and number large
   ========================================================================= */
.dmt-top .field__label { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.dmt-top .field { flex: 0 1 380px; }
.dmt-top #dmtMobile { height: 58px; padding: 0 18px; font-size: 24px; font-weight: 800; letter-spacing: .1em; color: var(--ink-900); background: #eff6ff; border: 2.5px solid var(--brand-500); border-radius: 14px; box-shadow: 0 0 0 5px rgba(37, 99, 235, .14); }
:root[data-theme="dark"] .dmt-top #dmtMobile { background: #10203d; }
.dmt-top #dmtMobile::placeholder { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--ink-400); }
.dmt-top #dmtMobile:focus { box-shadow: 0 0 0 6px rgba(37, 99, 235, .28); }
.dmt-top .btn { height: 58px; font-size: 16px; }

.dmt-who__chan { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-500); }
.dmt-who__name { font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--ink-900); }
.dmt-who__mobile { margin-top: 2px; font-family: var(--mono); font-size: 26px; font-weight: 800; letter-spacing: .08em; color: var(--brand-500); }

/* which channel sent the OTP */
.dmt-via { flex-basis: 100%; font-size: 13px; font-weight: 650; color: var(--ink-500); }

@media (max-width: 720px) {
  .dmt-who__name { font-size: 25px; }
  .dmt-who__mobile { font-size: 22px; }
  .dmt-top .field { flex: 1 1 100%; }
}
/* =========================================================================
   Session about to end: the 30-seconds-left popup
   ========================================================================= */
.idle { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(7, 18, 48, .68); }
.idle__card { width: 100%; max-width: 420px; padding: 26px 24px 22px; text-align: center; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: idlein .25s ease; }
@keyframes idlein { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.idle__icon { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #fef3c7; color: #b45309; }
:root[data-theme="dark"] .idle__icon { background: #2b2113; color: #fbbf24; }
.idle__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--ink-900); }
.idle__count { font-size: 64px; font-weight: 800; line-height: 1.05; color: var(--rose-500); font-variant-numeric: tabular-nums; }
.idle__text { margin: 2px 0 18px; font-size: 15px; font-weight: 600; color: var(--ink-500); }
.idle__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.idle__row .btn { height: 46px; font-size: 15px; }
/* =========================================================================
   Receipt: company, retailer, remitter, beneficiary, then the transactions
   ========================================================================= */
.dmt-copy-buffer { position: fixed; left: -9999px; top: 0; opacity: 0; }
.dmt-sharenote { flex-basis: 100%; }

.dmt-slip .head { margin-bottom: 4px; text-align: center; }
.dmt-slip .head h2 { margin: 0 0 2px; font-size: 1.35em; letter-spacing: .02em; }
.dmt-slip .sub { font-size: .92em; }
.dmt-slip .ttl { margin-top: 8px; padding: 5px 0; border-top: 2px solid #000; border-bottom: 2px solid #000; font-weight: 800; letter-spacing: .06em; }
.dmt-slip .state { display: inline-block; margin-top: 8px; padding: 2px 14px; border: 2px solid #000; font-weight: 800; letter-spacing: .08em; }
.dmt-slip .sec { margin-top: 10px; }
.dmt-slip .sec__t { margin-bottom: 4px; padding-bottom: 2px; border-bottom: 1px solid #000; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dmt-slip .k b { max-width: 62%; text-align: right; word-break: break-word; }
.dmt-slip .tx { margin: 6px 0; padding-bottom: 6px; border-bottom: 1px dashed #000; }
.dmt-slip .tot { margin-top: 6px; padding-top: 4px; border-top: 1px solid #000; }
.dmt-slip .foot { margin-top: 12px; padding-top: 6px; border-top: 1px dashed #000; text-align: center; font-size: .9em; }
.dmt-slip .foot div { margin-top: 2px; }

body.dmt-print--a4 .dmt-slip .k { padding: 3px 0; border-bottom: 1px solid #e5e5e5; }
body.dmt-print--a4 .dmt-slip .sec__t { font-size: 1.02em; }
.dmt-slip .tx + .tot { border-top: 0; margin-top: 0; }

/* =========================================================================
   Recharge (Recharge.aspx / assets/js/recharge.js)
   ========================================================================= */
.rc-demo { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius); background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; font-size: 13.5px; }
.rc-demo--sm { margin: 12px 0 0; padding: 7px 12px; font-size: 12.5px; }
:root[data-theme="dark"] .rc-demo { background: #2b2113; color: #fde68a; border-color: #4a3a17; }

.rc-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 18px; align-items: start; }
.rc .btn--ok { background: linear-gradient(180deg, #22c55e, var(--green-500)); color: #fff; box-shadow: 0 6px 18px rgba(22, 163, 74, .3); }
.rc .btn--soft { background: var(--ink-100); color: var(--ink-900); }

/* type tabs */
.rc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; margin-bottom: 18px; background: var(--ink-100); border-radius: 14px; }
.rc-tab { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-500); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.rc-tab:hover { color: var(--ink-900); }
.rc-tab.is-on { background: var(--white); color: var(--brand-500); box-shadow: var(--shadow-sm); }

.rc-number { font-size: 22px; font-weight: 700; letter-spacing: .08em; height: 56px; border-color: var(--brand-300); background: var(--brand-soft); }
.rc-amtwrap { position: relative; }
.rc-rupee { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 750; color: var(--ink-500); }
.rc-amount { height: 62px; padding-left: 40px; font-size: 30px; font-weight: 800; color: var(--ink-900); }
.rc-amount.is-bad, .rc-amount.is-bad:focus { border-color: #dc2626; background: #fef2f2; box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
:root[data-theme="dark"] .rc-amount.is-bad { background: #2a1620; }
.rc-words { min-height: 20px; margin-top: 6px; font-style: italic; font-weight: 650; color: #15803d; font-size: 14px; }
.rc-go { width: 100%; height: 52px; margin-top: 6px; font-size: 16px; }

/* detected operator */
.rc-op { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--ink-50); border: 1px solid var(--ink-200); }
.rc-op__t { display: flex; flex-direction: column; line-height: 1.25; }
.rc-op__t b { font-size: 16px; color: var(--ink-900); }
.rc-op__t span { font-size: 13px; color: var(--ink-500); }
.rc-op__ok { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #16a34a; color: #fff; font-size: 14px; font-weight: 800; }

.rc-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 800; background: linear-gradient(135deg, #475569, #1e293b); }
.rc-mark--sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.rc-mark--lg { width: 54px; height: 54px; border-radius: 15px; font-size: 18px; }
.rc-mark--airtel { background: linear-gradient(135deg, #f43f3f, #b91c1c); }
.rc-mark--jio { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.rc-mark--vi, .rc-mark--vodafoneidea { background: linear-gradient(135deg, #e11d48, #7e22ce); }
.rc-mark--bsnl { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.rc-mark--tataplay { background: linear-gradient(135deg, #a21caf, #581c87); }
.rc-mark--airteldigitaltv { background: linear-gradient(135deg, #f43f3f, #991b1b); }
.rc-mark--dishtv { background: linear-gradient(135deg, #f97316, #c2410c); }
.rc-mark--d2h { background: linear-gradient(135deg, #f59e0b, #b45309); }
.rc-mark--sundirect { background: linear-gradient(135deg, #eab308, #a16207); }

.rc-ops { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.rc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--ink-200); border-radius: 99px; background: var(--white); color: var(--ink-900); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: border-color .15s, background .15s; }
.rc-chip:hover { border-color: var(--brand-300); }
.rc-chip.is-on { border-color: var(--brand-500); background: var(--brand-soft); }

/* plans */
.rc-empty { margin: 8px 0; padding: 26px 12px; text-align: center; color: var(--ink-500); font-size: 14px; }
.rc-search { width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--ink-200); border-radius: 12px; background: var(--white); color: var(--ink-900); font: inherit; font-size: 14.5px; }
.rc-search:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.rc-cats { display: flex; gap: 6px; margin: 12px 0; overflow-x: auto; padding-bottom: 4px; }
.rc-cat { flex: none; padding: 7px 14px; border: 0; border-radius: 99px; background: var(--ink-100); color: var(--ink-700); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.rc-cat.is-on { background: var(--brand-500); color: #fff; }
.rc-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-height: 560px; overflow-y: auto; padding: 2px; }
.rc-plan { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "amt val" "desc desc"; align-items: center; gap: 6px 10px; padding: 12px 14px; text-align: left; border: 1.5px solid var(--ink-200); border-radius: 14px; background: var(--white); color: var(--ink-900); font: inherit; cursor: pointer; transition: border-color .15s, transform .12s, box-shadow .15s; }
.rc-plan:hover { border-color: var(--brand-300); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.rc-plan.is-on { border-color: var(--brand-500); background: var(--brand-soft); }
.rc-plan__amt { grid-area: amt; font-size: 21px; font-weight: 800; color: var(--brand-500); }
.rc-plan__val { grid-area: val; justify-self: end; padding: 2px 9px; border-radius: 99px; background: var(--ink-100); font-size: 12px; font-weight: 700; color: var(--ink-700); }
.rc-plan__desc { grid-area: desc; font-size: 12.5px; line-height: 1.4; color: var(--ink-500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* confirm */
.rc-confirm { max-width: 460px; }
.rc-cf__op { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rc-cf__opn { font-size: 20px; font-weight: 800; color: var(--ink-900); }
.rc-cf__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ink-200); font-size: 14px; color: var(--ink-500); }
.rc-cf__num { font-size: 24px; letter-spacing: .06em; color: var(--ink-900); }
.rc-cf__amt { margin-top: 10px; font-size: 44px; font-weight: 850; text-align: center; color: var(--ink-900); }
.rc-cf .rc-words { text-align: center; }

/* result */
.rc-result { max-width: 480px; text-align: center; }
.rc-res__t { margin: 8px 0 2px; font-size: 21px; font-weight: 800; color: var(--ink-900); }
.rc-res.is-ok .rc-res__t { color: #15803d; }
.rc-res__amt { font-size: 42px; font-weight: 850; color: var(--ink-900); }
.rc-res__to { margin-top: 2px; font-size: 15px; color: var(--ink-500); }
.rc-res__ids { margin: 14px 0; padding: 4px 14px; border-radius: 12px; background: var(--ink-50); border: 1px solid var(--ink-200); text-align: left; }
.rc-res__ids div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.rc-res__ids div + div { border-top: 1px solid var(--ink-200); }
.rc-res__ids span { color: var(--ink-500); }
.rc-res__ids b { color: var(--ink-900); word-break: break-all; text-align: right; }
.rc-res__acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rc-res__acts .btn:first-child { grid-column: 1 / -1; }
.rc-res__new { width: 100%; margin-top: 12px; }
.rc-tick { display: grid; place-items: center; height: 70px; }
.rc-tick__c { fill: none; stroke: #22c55e; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: rcDraw .6s ease forwards; }
.rc-tick__p { fill: none; stroke: #22c55e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rcDraw .4s .5s ease forwards; }
@keyframes rcDraw { to { stroke-dashoffset: 0; } }

/* recent */
.rc-recent { margin-top: 18px; }
.rc-rlist { display: grid; gap: 8px; }
.rc-ritem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ink-200); border-radius: 12px; }
.rc-ritem__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rc-ritem__t b { font-size: 15px; color: var(--ink-900); }
.rc-ritem__t span { font-size: 12.5px; color: var(--ink-500); }
.rc-ritem__a { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-weight: 800; color: var(--ink-900); }

/* print preview */
.rc-print { max-width: 560px; }
.rc-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.rc-size { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1.5px solid var(--ink-200); border-radius: 12px; background: var(--white); color: var(--ink-900); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.rc-size b { font-size: 12.5px; }
.rc-size small { font-size: 11px; color: var(--ink-500); }
.rc-size.is-on { border-color: var(--brand-500); background: var(--brand-soft); }
.rc-size__ico { display: block; width: 28px; height: 38px; border: 2px solid var(--ink-400); border-radius: 3px; background: linear-gradient(var(--ink-200), var(--ink-200)) no-repeat; }
.rc-size__ico--full { background: var(--brand-300); }
.rc-size__ico--half { background: linear-gradient(var(--brand-300), var(--brand-300)) top / 100% 50% no-repeat; }
.rc-size__ico--quarter { background: linear-gradient(var(--brand-300), var(--brand-300)) top left / 50% 50% no-repeat; }
.rc-size__ico--thermal { width: 16px; background: var(--brand-300); }
.rc-preview { max-height: 46vh; overflow: auto; padding: 14px; border-radius: 12px; background: var(--ink-100); display: flex; justify-content: center; }
.rc-preview__page { position: relative; overflow: hidden; flex: none; background: #fff; box-shadow: var(--shadow); }
.rc-preview__page.is-full { width: 420px; height: 594px; }
.rc-preview__page.is-half { width: 420px; height: 296px; }
.rc-preview__page.is-quarter { width: 210px; height: 296px; }
.rc-preview__page.is-thermal { width: 205px; height: 380px; }
.rc-preview__page .rc-slip { transform: scale(.55); transform-origin: top left; }
.rc-preview__page.is-thermal .rc-slip { transform: scale(.72); }

/* the slip (preview and print share these rules; widths are real paper widths) */
.rc-slip { color: #000; background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.4; }
.rc-slip--full { width: 760px; padding: 18px 22px; font-size: 14px; }
.rc-slip--half { width: 760px; padding: 12px 20px; font-size: 12px; }
.rc-slip--quarter { width: 372px; padding: 10px 12px; font-size: 10px; }
.rc-slip--thermal { width: 272px; padding: 6px 4px; font: 11px/1.35 "Courier New", monospace; }
.rc-slip .demo { margin-bottom: 8px; padding: 3px 0; border: 2px dashed #000; text-align: center; font-weight: 800; letter-spacing: .08em; font-size: .9em; }
.rc-slip .head { text-align: center; }
.rc-slip .head h2 { margin: 0; font-size: 1.5em; letter-spacing: .02em; }
.rc-slip .sub { font-size: .9em; }
.rc-slip .ttl { margin-top: 6px; padding: 4px 0; border-top: 2px solid #000; border-bottom: 2px solid #000; font-weight: 800; letter-spacing: .06em; }
.rc-slip .state { display: inline-block; margin-top: 6px; padding: 1px 14px; border: 2px solid #000; font-weight: 800; letter-spacing: .08em; }
.rc-slip .amt { margin: 8px 0; padding: 6px 0; text-align: center; border-bottom: 1px solid #000; }
.rc-slip .amt span { display: block; font-size: .85em; text-transform: uppercase; letter-spacing: .1em; }
.rc-slip .amt b { display: block; font-size: 2.1em; line-height: 1.15; }
.rc-slip .amt i { font-size: .9em; }
.rc-slip .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rc-slip .sec { margin-top: 8px; }
.rc-slip .sec__t { margin-bottom: 3px; padding-bottom: 2px; border-bottom: 1px solid #000; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .92em; }
.rc-slip .k { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.rc-slip .k b { max-width: 62%; text-align: right; word-break: break-word; }
.rc-slip .foot { margin-top: 10px; padding-top: 5px; border-top: 1px dashed #000; text-align: center; font-size: .88em; }
.rc-slip .foot div { margin-top: 2px; }

.rc-printbox { display: none; }
@page rcA4 { size: A4; margin: 8mm; }
@page rcThermal { size: 80mm auto; margin: 2mm; }
@media print {
  body.rc-printing .rc > :not(#rcPrintBox) { display: none !important; }
  body.rc-printing .rc-printbox { display: block; background: #fff; }
  body.rc-print--full .rc-printbox, body.rc-print--half .rc-printbox, body.rc-print--quarter .rc-printbox { page: rcA4; }
  body.rc-print--thermal .rc-printbox { page: rcThermal; }
  body.rc-printing .rc-printbox .rc-slip { transform: none; padding: 0; }
  body.rc-print--full .rc-printbox .rc-slip, body.rc-print--half .rc-printbox .rc-slip { width: 194mm; }
  body.rc-print--quarter .rc-printbox .rc-slip { width: 97mm; }
  body.rc-print--thermal .rc-printbox .rc-slip { width: 72mm; }
  body.rc-print--half .rc-printbox .rc-slip, body.rc-print--quarter .rc-printbox .rc-slip { max-height: 142mm; overflow: hidden; }
}

@media (max-width: 900px) {
  .rc-grid { grid-template-columns: 1fr; }
  .rc-sizes { grid-template-columns: repeat(2, 1fr); }
  .rc-preview__page.is-full, .rc-preview__page.is-half { max-width: 420px; }
}

.rc [hidden] { display: none !important; }

/* ---- BBPS (BBPS.aspx / assets/js/bbps.js) ---- */
.bb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.bb-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border: 1.5px solid var(--ink-200); border-radius: 16px; background: var(--white); color: var(--ink-900); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s, background .15s; }
.bb-cat:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.bb-cat.is-on { border-color: var(--brand-500); background: var(--brand-soft); }
.bb-cat__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); box-shadow: 0 6px 16px var(--brand-glow); }
.bb-cat__t { font-size: 13.5px; font-weight: 700; text-align: center; }
.bb-billers { display: flex; flex-wrap: wrap; gap: 8px; max-height: 230px; overflow-y: auto; margin: 0 0 16px; padding: 2px; }
.bb-billers .rc-chip.is-on { cursor: default; }
.bb-redo { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink-200); border-radius: 50%; background: var(--white); color: var(--ink-700); cursor: pointer; transition: border-color .15s, color .15s, transform .25s; }
.bb-redo:hover { border-color: var(--brand-400); color: var(--brand-600); transform: rotate(-90deg); }
.bb-bill__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bb-rows { margin: 12px 0; padding: 2px 14px; border-radius: 12px; background: var(--ink-50); border: 1px solid var(--ink-200); }
.bb-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; }
.bb-row + .bb-row { border-top: 1px solid var(--ink-200); }
.bb-row span { color: var(--ink-500); }
.bb-row b { color: var(--ink-900); text-align: right; }
.bb-due { margin: 14px 0; text-align: center; }
.bb-due span { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.bb-due b { display: block; font-size: 42px; font-weight: 850; color: var(--ink-900); line-height: 1.15; }
.bb.rc .bb-bill { min-height: 120px; }

/* =========================================================================
   Phones: nothing may be wider than the screen (a wider page makes the phone
   zoom out and the menu button, which only exists below 981px, disappears),
   and the beneficiary list becomes one compact card per beneficiary.
   ========================================================================= */
.shell__main { min-width: 0; }
.wrap, .wrap--full { min-width: 0; }
.dmt, .rc { max-width: 100%; }
.dmt .card, .rc .card { min-width: 0; }

@media (max-width: 720px) {
  .dmt-top .field, .dmt-top #dmtMobile { flex: 1 1 100%; min-width: 0; width: 100%; }
  .dmt-top .btn { width: 100%; }
  .dmt-chs { grid-template-columns: minmax(0, 1fr); }

  .dmt-who { flex-direction: column; align-items: stretch; gap: 8px; }
  .dmt-who__lim { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--ink-50); border: 1px solid var(--ink-200); }
  .dmt-who__lim .dmt-ch__big { font-size: 24px; }

  .dmt-search { flex-wrap: wrap; gap: 8px; }
  .dmt-searchbox { flex: 1 1 100%; }
  .dmt-search .dmt-note { order: 3; }
  .dmt-search__add { margin-left: 0; width: 100%; }

  /* one card per beneficiary */
  .dmt-bt, .dmt-bt tbody { display: block; width: 100%; }
  .dmt-bt tr.dmt-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center;
    width: 100%; margin: 0 0 12px; padding: 12px; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm);
  }
  .dmt-bt td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .dmt-bt td:nth-child(1), .dmt-bt td:nth-child(2), .dmt-bt td:nth-child(3) { grid-column: 1 / -1; }
  .dmt-bt td:nth-child(3) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 10px; border-radius: 10px; background: var(--ink-50); }
  .dmt-bt td:nth-child(4) { grid-column: 1; }
  .dmt-bt td:nth-child(5) { grid-column: 2; display: flex; gap: 6px; }
  .dmt-bt .dmt-amt { width: 100%; height: 46px; font-size: 17px; font-weight: 700; }
  .dmt-bt td:nth-child(5) .btn { height: 46px; padding: 0 16px; }
  .dmt-bank { gap: 10px; }
  .dmt-bank__name { font-size: 14px; color: var(--ink-500); font-weight: 650; }
  .dmt-bn { font-size: 17px; }
  .dmt-acct { font-size: 17px; }

  /* the payment popup and the other dialogs */
  .dmt-modal { padding: 8px; align-items: end; }
  .dmt-modal__box { max-width: 100%; padding: 16px; border-radius: 20px 20px 14px 14px; max-height: calc(100vh - 16px); }
  .dmt-slot__amt { min-width: 0; }
  .dmt-modal__row { flex-wrap: wrap; }
  .dmt-modal__row .btn { flex: 1 1 auto; }

  /* Recharge / BBPS */
  .rc-grid { grid-template-columns: minmax(0, 1fr); }
  .rc-tab span { font-size: 12.5px; }
  .rc-plist { grid-template-columns: minmax(0, 1fr); max-height: 420px; }
  .rc-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-preview { padding: 8px; }
  .rc-preview__page.is-full, .rc-preview__page.is-half { max-width: 100%; }
  .rc-ritem { flex-wrap: wrap; }
  .bb-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bb-cat { padding: 12px 4px; }
  .bb-cat__t { font-size: 12px; }
}

@media (max-width: 720px) {
  /* payment popup: compact details, slot actions on their own line */
  .dmt-pd { padding: 12px 14px; border-width: 1.5px; }
  .dmt-pd__top { gap: 8px; padding-bottom: 10px; }
  .dmt-pd__name { font-size: 21px; }
  .dmt-pd__amount { text-align: left; width: 100%; }
  .dmt-pd__amt { font-size: 30px; }
  .dmt-pd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 12px 0; }
  .dmt-pd__grid > :nth-child(1), .dmt-pd__grid > :nth-child(2) { grid-column: 1 / -1; }
  .dmt-pd__val { font-size: 16px; }
  .dmt-pd__acct { font-size: 20px; }
  .dmt-pd__ifsc { font-size: 17px; }
  .dmt-pd__mode { gap: 8px 12px; }
  .dmt-slot { padding: 12px; gap: 10px; }
  .dmt-slot__amt { min-width: 0; font-size: 22px; flex: 1 1 100%; }
  .dmt-slot__act { flex: 1 1 100%; }
  .dmt-slot__act .btn, .dmt-slot__act .dmt-otp { flex: 1 1 auto; }
}

/* =========================================================================
   Banking look: deep navy shell, clean white surfaces, thin borders, a gold
   accent for what matters, and a dashboard laid out like an account summary.
   Everything uses the existing colour variables so light/dark keep working.
   ========================================================================= */
:root {
  --bank-navy: #0a2342;
  --bank-navy-2: #123a6b;
  --bank-gold: #c9a24b;
  --bank-gold-2: #e6c77a;
  --bank-line: #dfe6f1;
  --bank-bg: #f3f6fb;
}
:root[data-theme="dark"] { --bank-line: #263148; --bank-bg: #0a101c; }

.body--app { background: var(--bank-bg); font-feature-settings: "tnum" 1, "cv11" 1; }

/* ---- sidebar ---- */
.sidebar { background: linear-gradient(180deg, #0a2342 0%, #0b2a52 55%, #082039 100%); border-right: 0; box-shadow: 4px 0 24px rgba(10, 35, 66, .18); }
.sidebar__brand { height: 66px; border-bottom: 1px solid rgba(255, 255, 255, .09); letter-spacing: .01em; }
.sidebar__brand svg { color: var(--bank-gold-2); }
.sidebar__brand > span { font-size: 18px; font-weight: 800; }
.nav { padding: 18px 12px; }
.nav__label { color: rgba(230, 199, 122, .7); letter-spacing: .14em; }
.nav__link { position: relative; padding: 11px 14px; border-radius: 10px; color: rgba(226, 232, 240, .82); }
.nav__link:hover { background: rgba(255, 255, 255, .07); }
.nav__link.is-active { background: linear-gradient(90deg, rgba(201, 162, 75, .22), rgba(255, 255, 255, .06)); box-shadow: none; color: #fff; }
.nav__link.is-active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3.5px; border-radius: 0 4px 4px 0; background: var(--bank-gold); }
.nav__link.is-active svg { color: var(--bank-gold-2); }
.sidebar__foot { border-top-color: rgba(255, 255, 255, .09); }
.usercard { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .06); }

/* ---- top bar ---- */
.topbar { background: var(--white); border-bottom: 1px solid var(--bank-line); box-shadow: 0 1px 0 rgba(10, 35, 66, .03); }
.topbar__title { font-weight: 750; letter-spacing: -.01em; color: var(--ink-900); }

/* ---- page heading ---- */
.page__head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--bank-line); position: relative; }
.page__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 54px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--bank-gold), var(--bank-gold-2)); }
.page__title { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-900); }

/* ---- cards ---- */
.card { background: var(--white); border: 1px solid var(--bank-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(10, 35, 66, .04), 0 8px 24px rgba(10, 35, 66, .04); }
.card__head { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--bank-line); font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--bank-navy-2); }
:root[data-theme="dark"] .card__head { color: var(--brand-300); }
.card__head svg { color: var(--bank-gold); }
.btn--primary { background: linear-gradient(180deg, var(--bank-navy-2), var(--bank-navy)); box-shadow: 0 6px 16px rgba(10, 35, 66, .26); }
.btn--primary:hover { box-shadow: 0 9px 22px rgba(10, 35, 66, .34); }
.field__input:focus, .rc-search:focus { border-color: var(--bank-navy-2); box-shadow: 0 0 0 3px rgba(18, 58, 107, .18); }
.kv { background: var(--bank-line); border-radius: 10px; }

/* ---- dashboard hero ---- */
.db-hero { position: relative; overflow: hidden; margin-bottom: 26px; padding: 26px 28px 28px; color: #fff; border-radius: 20px;
  background: radial-gradient(900px 300px at 85% -20%, rgba(230, 199, 122, .22), transparent 60%), radial-gradient(600px 260px at 0% 120%, rgba(59, 130, 246, .28), transparent 60%), linear-gradient(135deg, #0a2342 0%, #123a6b 100%);
  box-shadow: 0 18px 40px rgba(10, 35, 66, .28); }
.db-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 36px solid rgba(255, 255, 255, .04); border-radius: 50%; pointer-events: none; }
.db-hero__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; z-index: 1; }
.db-hero__hi { font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bank-gold-2); }
.db-hero__name { margin: 2px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.db-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.db-pill { padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.db-hero__status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.db-secure { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(34, 197, 94, .16); border: 1px solid rgba(34, 197, 94, .35); color: #bbf7d0; font-size: 12.5px; font-weight: 700; }
.db-hero__since { font-size: 12.5px; color: rgba(255, 255, 255, .6); }

.db-accts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.db-acct { padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.db-acct--aeps { background: linear-gradient(135deg, rgba(20, 184, 166, .28), rgba(255, 255, 255, .06)); }
.db-acct__head { display: flex; align-items: center; gap: 10px; }
.db-acct__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .14); color: var(--bank-gold-2); }
.db-acct__name { flex: 1; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .92); }
.db-acct__tag { padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 11.5px; font-weight: 650; color: rgba(255, 255, 255, .8); }
.db-acct__bal { margin: 14px 0 8px; font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.db-acct__bal small { margin-right: 4px; font-size: 22px; font-weight: 600; color: var(--bank-gold-2); }
.db-acct__foot { font-size: 12.5px; color: rgba(255, 255, 255, .66); }

/* ---- section headings ---- */
.db-sec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 14px; }
.db-sec__t { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-900); }
.db-sec__s { font-size: 13px; color: var(--ink-500); }

/* ---- services ---- */
.db-svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 28px; }
.db-svc { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 16px; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--bank-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(10, 35, 66, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.db-svc:hover { transform: translateY(-3px); border-color: var(--bank-navy-2); box-shadow: 0 14px 30px rgba(10, 35, 66, .12); }
.db-svc__ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 8px; border-radius: 14px; color: #fff; box-shadow: 0 8px 18px rgba(10, 35, 66, .18); }
.db-svc__ico--blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.db-svc__ico--teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.db-svc__ico--violet { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.db-svc__ico--amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.db-svc__t { font-size: 16.5px; font-weight: 800; color: var(--ink-900); }
.db-svc__d { flex: 1; font-size: 13px; line-height: 1.45; color: var(--ink-500); }
.db-svc__go { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 750; color: var(--bank-navy-2); }
:root[data-theme="dark"] .db-svc__go { color: var(--brand-300); }
.db-svc:hover .db-svc__go svg { transform: translateX(3px); }
.db-svc__go svg { transition: transform .18s ease; }

.session { margin-top: 22px; padding: 12px 16px; border: 1px solid var(--bank-line); border-radius: 12px; background: var(--white); }

@media (max-width: 720px) {
  .db-hero { padding: 18px 16px 18px; border-radius: 16px; margin-bottom: 20px; }
  .db-hero__name { font-size: 23px; }
  .db-hero__status { align-items: flex-start; }
  .db-acct { padding: 14px 16px; }
  .db-acct__bal { font-size: 31px; }
  .db-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .db-svc { padding: 14px 14px 12px; }
  .db-svc__ico { width: 42px; height: 42px; }
  .db-svc__t { font-size: 14.5px; }
  .db-svc__d { font-size: 12px; }
  .page__title { font-size: 21px; }
}

/* =========================================================================
   Balance + services row (every page except the dashboard).
   Leaving the dashboard, the two balance cards of the hero shrink into the
   chips of this row (cross-document view transitions, where the browser has
   them); everywhere else the row simply slides in.
   ========================================================================= */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .28s; }
::view-transition-group(wallet), ::view-transition-group(aepsbal) { animation-duration: .42s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(wallet), ::view-transition-new(wallet), ::view-transition-old(aepsbal), ::view-transition-new(aepsbal) { height: 100%; object-fit: cover; }
.db-acct:not(.db-acct--aeps) { view-transition-name: wallet; }
.db-acct--aeps { view-transition-name: aepsbal; }
.fbar__bal--wallet { view-transition-name: wallet; }
.fbar__bal--aeps { view-transition-name: aepsbal; }

.fbar { position: sticky; top: 62px; z-index: 30; background: linear-gradient(90deg, #0a2342, #123a6b); color: #fff; box-shadow: 0 6px 18px rgba(10, 35, 66, .22); animation: fbarIn .45s cubic-bezier(.22, .8, .24, 1) both; }
.fbar__inner { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; padding: 8px 28px; }
.fbar__bals { display: flex; align-items: center; gap: 10px; }
.fbar__bal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; }
.fbar__bal svg { color: var(--bank-gold-2); flex: none; }
.fbar__k { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.fbar__bal b { font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fbar__bal small { margin-right: 2px; font-size: 12px; font-weight: 600; color: var(--bank-gold-2); }
.fbar__bal--aeps { background: rgba(20, 184, 166, .22); }

.fbar__svcs { display: flex; align-items: center; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.fbar__svcs::-webkit-scrollbar { display: none; }
.fbar__svc { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 650; white-space: nowrap; text-decoration: none; color: rgba(255, 255, 255, .8); transition: background .15s, color .15s; }
.fbar__svc:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fbar__svc.is-on { background: rgba(201, 162, 75, .26); color: #fff; box-shadow: inset 0 -2px 0 var(--bank-gold); }

@keyframes fbarIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fbarChip { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.fbar__bal { animation: fbarChip .5s .12s cubic-bezier(.22, .8, .24, 1) both; }
.fbar__bal--aeps { animation-delay: .2s; }

/* the balance is in the row now; the service pages keep only their status card */
.grid--balances > .card.balance { display: none; }

@media (max-width: 980px) { .fbar__inner { padding: 8px 16px; } }
@media (max-width: 620px) {
  .fbar { top: 56px; }
  .fbar__inner { gap: 6px; padding: 7px 12px; }
  .fbar__bals { width: 100%; }
  .fbar__bal { flex: 1; justify-content: center; padding: 5px 8px; gap: 6px; }
  .fbar__k { font-size: 10.5px; }
  .fbar__bal b { font-size: 14px; }
  .fbar__svcs { width: 100%; margin-left: 0; gap: 4px; }
  .fbar__svc { padding: 6px 10px; font-size: 12.5px; }
  .fbar__svc svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fbar, .fbar__bal { animation: none; }
  @view-transition { navigation: none; }
}

/* ---- balance chips: spin once and settle; the shell stays put between pages ---- */
@keyframes fbarSpin {
  0%   { transform: perspective(700px) rotateY(-540deg) scale(.55); opacity: 0; }
  35%  { opacity: 1; }
  75%  { transform: perspective(700px) rotateY(12deg) scale(1.06); }
  100% { transform: perspective(700px) rotateY(0) scale(1); }
}
@keyframes fbarGlint { from { background-position: -160% 0; } to { background-position: 260% 0; } }
.fbar__bal { animation: fbarSpin 1s .3s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 50%; backface-visibility: visible; }
.fbar__bal--aeps { animation-delay: .45s; }
.fbar__bal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%) no-repeat; background-size: 60% 100%; animation: fbarGlint .9s 1.2s ease-out both; }
.fbar__bal { position: relative; overflow: hidden; }
.db-acct { animation: fbarSpin .9s .1s cubic-bezier(.2, .8, .2, 1) both; }
.db-acct--aeps { animation-delay: .25s; }

/* only the page content changes between pages: the menu, top bar and this row are carried over by the browser */
.sidebar { view-transition-name: sidebar; }
.topbar { view-transition-name: topbar; }
.fbar { view-transition-name: fbar; }
::view-transition-group(sidebar), ::view-transition-group(topbar), ::view-transition-group(fbar) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) { .fbar__bal, .db-acct, .fbar__bal::after { animation: none; } }

/* ---- status dot and location in the top row; notes that stay on the service pages ---- */
.fbar__st { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.fbar__dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.fbar__st.is-on .fbar__dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: fbarPulse 2s infinite; }
.fbar__st.is-off .fbar__dot { background: #f43f5e; }
@keyframes fbarPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.fbar__loc { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 13px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .9); }
.fbar__loc svg { flex: none; color: var(--bank-gold-2); }
.fbar__loc.is-off svg { color: #fda4af; }
.fbar__lt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.fbar__lt b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbar__lt small { font-size: 11px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .62); }
.fbar__loc[hidden] { display: none; }
.fbar__bals { flex-wrap: wrap; }
.svcnote { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f3d9a4; color: #7a4b00; font-size: 14px; }
.svcnote p + p { margin-top: 6px; }
:root[data-theme="dark"] .svcnote { background: #2b2113; border-color: #4a3a17; color: #fde68a; }
@media (max-width: 620px) {
  .fbar__st { flex: 1 1 100%; justify-content: center; }
  .fbar__loc { width: 100%; }
}

/* the row is balances, status and location only (the services are in the left menu): one line on wide screens */
.fbar__inner { flex-wrap: nowrap; }
.fbar__bals { flex-wrap: nowrap; }
.fbar__loc { margin-left: auto; }
@media (max-width: 980px) { .fbar__inner { flex-wrap: wrap; } .fbar__bals { flex-wrap: wrap; } .fbar__loc { margin-left: 0; } }

/* ---- screenshot deterrents (deterrents.js) ---- */
.shotguard { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; cursor: pointer; background: rgba(10, 35, 66, .86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.shotguard[hidden] { display: none; }
.shotguard__box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; text-align: center; color: #fff; }
.shotguard__box svg { color: var(--bank-gold-2); }
.shotguard__box b { font-size: 18px; }
.shotguard__box span { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.watermark { position: fixed; inset: 0; z-index: 9000; pointer-events: none; background-repeat: repeat; }
@media print { .shotguard, .watermark { display: none !important; } }

/* ---- RemitPay logo ---- */
.logochip { display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.logochip__img { display: block; height: auto; max-width: 100%; }
.logochip--lg { padding: 8px 18px; border-radius: 16px; }
.sidebar__brand .logochip { flex: 1; min-width: 0; margin-right: 6px; justify-content: flex-start; }
.sidebar__brand .logochip__img { width: 128px; }
.brand__logo { margin-bottom: 40px; }
.panel__logo--img { margin-bottom: 18px; }
.panel__img { display: block; height: auto; max-width: 70%; }
.notice__logo { margin-bottom: 14px; text-align: center; }
.notice__img { display: inline-block; height: auto; max-width: 150px; }
.slip__img { display: block; height: auto; max-width: 150px; margin: 0 auto; }
.slip__logo-img { display: block; height: auto; width: 150px; max-width: 60%; margin: 0 auto 4px; }
.rc-slip--quarter .slip__logo-img { width: 90px; }
.rc-slip--thermal .slip__logo-img { width: 110px; }
.dmt-slip .slip__logo-img { max-width: 140px; }
@media print { .slip__logo-img, .slip__img { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* printing a receipt: nothing but the receipt may take room on the page, or it lands on page 2 behind a blank first page */
@media print {
  body.rc-printing .sidebar, body.rc-printing .sidebar__backdrop, body.rc-printing .topbar, body.rc-printing .fbar, body.rc-printing .ticker,
  body.rc-printing .page__head, body.rc-printing .svcnote, body.rc-printing .pending, body.rc-printing .shotguard, body.rc-printing .watermark,
  body.dmt-printing .sidebar, body.dmt-printing .sidebar__backdrop, body.dmt-printing .topbar, body.dmt-printing .fbar, body.dmt-printing .ticker,
  body.dmt-printing .page__head, body.dmt-printing .svcnote, body.dmt-printing .pending, body.dmt-printing .shotguard, body.dmt-printing .watermark { display: none !important; }
  body.rc-printing, body.dmt-printing { margin: 0; padding: 0; background: #fff; overflow: visible; }
  body.rc-printing .shell, body.rc-printing .shell__main, body.rc-printing .wrap,
  body.dmt-printing .shell, body.dmt-printing .shell__main, body.dmt-printing .wrap { display: block; min-height: 0; height: auto; margin: 0; padding: 0; max-width: none; overflow: visible; }
  body.rc-printing .rc, body.dmt-printing .dmt { display: block; margin: 0; padding: 0; }
}

/* ---- notification bell and popup ---- */
.iconbtn--bell { position: relative; }
.bellbadge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #e11d48; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--white); }
.bellbadge[hidden] { display: none; }
.iconbtn--bell.is-ring svg { animation: bellRing 1.2s .4s ease 2; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }

.nmodal { position: fixed; inset: 0; z-index: 1500; display: flex; justify-content: flex-end; align-items: flex-start; padding: 70px 18px 18px; background: rgba(7, 18, 48, .45); }
.nmodal[hidden] { display: none; }
.nmodal__box { width: 100%; max-width: 440px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--bank-line, var(--ink-200)); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: nmIn .2s ease; }
@keyframes nmIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.nmodal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: linear-gradient(135deg, #0a2342, #123a6b); color: #fff; }
.nmodal__title { font-size: 16.5px; font-weight: 800; }
.nmodal__x { width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.nmodal__x:hover { background: rgba(255, 255, 255, .22); }
.nmodal__body { overflow-y: auto; padding: 10px; display: grid; gap: 8px; }
.nmodal__empty { display: grid; justify-items: center; gap: 8px; padding: 34px 14px; text-align: center; color: var(--ink-500); }
.nitem { display: flex; gap: 12px; padding: 13px 14px; border: 1px solid var(--ink-200); border-radius: 13px; background: var(--white); }
.nitem__dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #3b82f6; }
.nitem--warn { background: #fff7e6; border-color: #f3d9a4; }
.nitem--warn .nitem__dot { background: #f59e0b; }
.nitem--offer .nitem__dot { background: #8b5cf6; }
:root[data-theme="dark"] .nitem--warn { background: #2b2113; border-color: #4a3a17; }
.nitem__main { min-width: 0; flex: 1; }
.nitem__t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 750; color: var(--ink-900); }
.nitem__x { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--ink-700); word-break: break-word; }
.nitem__img { display: block; width: 100%; height: auto; margin-top: 8px; border-radius: 10px; }
.nitem__new { display: none; padding: 1px 8px; border-radius: 99px; background: #e11d48; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nitem.is-new .nitem__new { display: inline-block; }
@media (max-width: 620px) { .nmodal { padding: 60px 10px 10px; } .nmodal__box { max-width: none; max-height: calc(100vh - 70px); } }

/* ---- dashboard: sale and earning ---- */
.db-sec--bar { justify-content: space-between; align-items: flex-end; }
.st-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--ink-100); border-radius: 12px; }
.st-tab { padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-500); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.st-tab:hover { color: var(--ink-900); }
.st-tab.is-on { background: var(--white); color: var(--bank-navy-2, var(--brand-500)); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .st-tab.is-on { color: var(--brand-300); }

.st { margin-bottom: 28px; transition: opacity .2s; }
.st.is-busy { opacity: .55; }
.st-demo { margin-bottom: 12px; padding: 9px 14px; border-radius: 12px; background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; font-size: 13px; }
.st-demo[hidden] { display: none; }
:root[data-theme="dark"] .st-demo { background: #2b2113; border-color: #4a3a17; color: #fde68a; }
.st-err { margin-top: 10px; color: #be123c; font-weight: 650; }
.st-err[hidden] { display: none; }

.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.st-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 14px 22px; background: var(--white); border: 1px solid var(--bank-line, var(--ink-200)); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(10, 35, 66, .04); }
.st-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #2563eb; }
.st-kpi--earn::before { background: #16a34a; }
.st-kpi--tx::before { background: #c9a24b; }
.st-kpi__k { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.st-kpi__v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.st-delta { min-height: 18px; font-size: 12.5px; font-weight: 700; color: var(--ink-500); }
.st-delta.is-up { color: #15803d; }
.st-delta.is-down { color: #be123c; }

.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-card--wide { grid-column: 1 / -1; }
.st-tip { min-height: 20px; margin: -2px 0 6px; font-size: 13px; color: var(--ink-700); }
.st-tip b { color: var(--ink-900); }
.st-chart { width: 100%; }
.st-svg { display: block; width: 100%; height: auto; overflow: visible; }

line.st-gl { stroke: var(--ink-200); stroke-width: 1; stroke-dasharray: 3 4; }
.st-axis { fill: var(--ink-500); font-size: 11px; font-family: inherit; }
.st-bar { fill: #3b82f6; transform-box: fill-box; transform-origin: 50% 100%; animation: stGrow .6s cubic-bezier(.2, .8, .2, 1) both; transition: fill .15s; }
.st-bar.is-hot { fill: #1d4ed8; }
.st-hit { fill: transparent; cursor: pointer; }
.st-stop1 { stop-color: #16a34a; stop-opacity: .38; }
.st-stop2 { stop-color: #16a34a; stop-opacity: 0; }
.st-line { stroke: #16a34a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: stDraw 1.2s ease forwards; }
.st-area { animation: stFade .9s .3s ease both; }
.st-dot { fill: var(--white); stroke: #16a34a; stroke-width: 2; opacity: 0; animation: stFade .4s .9s ease forwards; transition: r .12s; }
.st-dot.is-hot { r: 5.5; fill: #16a34a; }
@keyframes stGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes stDraw { to { stroke-dashoffset: 0; } }
@keyframes stFade { from { opacity: 0; } to { opacity: 1; } }

.st-svcs { display: grid; gap: 14px; }
.st-svc__row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.st-svc__n { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-900); }
.st-svc__v { font-weight: 750; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.st-svc__v small { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--ink-500); }
.st-dotkey { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; }
.st-dotkey--1, .st-meter__f--1 { background: #14b8a6; }
.st-dotkey--2, .st-meter__f--2 { background: #8b5cf6; }
.st-dotkey--3, .st-meter__f--3 { background: #f59e0b; }
.st-meter { height: 9px; border-radius: 99px; background: var(--ink-100); overflow: hidden; }
.st-meter__f { display: block; width: 0; height: 100%; border-radius: 99px; background: #3b82f6; transition: width .8s cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 900px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .db-sec--bar { gap: 10px; }
  .st-tabs { width: 100%; }
  .st-tab { flex: 1; padding: 8px 6px; font-size: 12.5px; }
  .st-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .st-kpi { padding: 12px 10px 10px 14px; }
  .st-kpi__v { font-size: 17px; }
  .st-kpi__k { font-size: 10px; letter-spacing: .04em; }
  .st-delta { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .st-bar, .st-line, .st-area, .st-dot { animation: none; opacity: 1; stroke-dashoffset: 0; } .st-meter__f { transition: none; } }

/* =========================================================================
   Money Transfer fits whatever room it is given. The width that matters is not
   the screen's but the box's: with the menu open a desktop window leaves the page
   only ~700px, so the layout follows the width of its own container, and
   nothing (buttons, amounts, dialogs) can end up outside it.
   ========================================================================= */
#dmtDetail, #dmtChannels, .dmt-top, .dmt-modal__box { container-type: inline-size; }
.dmt-modal__box { max-width: min(500px, 100%); }
.dmt-chs { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.dmt-top .field { flex: 1 1 260px; min-width: 0; }
.dmt-top #dmtMobile { width: 100%; min-width: 0; }
.dmt-pd__grid { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.dmt-bn, .dmt-bank__name, .dmt-acct, .dmt-pd__val, .dmt-pd__name { overflow-wrap: anywhere; }

/* ---- the beneficiary list: a table while it has room, one card per beneficiary when it does not ---- */
@container (max-width: 940px) {
  .dmt-who { flex-direction: column; align-items: stretch; gap: 8px; }
  .dmt-who__lim { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 10px 12px; text-align: left; border-radius: 12px; background: var(--ink-50); border: 1px solid var(--ink-200); }
  .dmt-who__lim .dmt-ch__big { font-size: 24px; }

  .dmt-search { flex-wrap: wrap; gap: 8px; }
  .dmt-searchbox { flex: 1 1 100%; width: 100%; }
  .dmt-search .dmt-note { order: 3; }
  .dmt-search__add { margin-left: 0; width: 100%; }

  .dmt-bt, .dmt-bt tbody { display: block; width: 100%; }
  .dmt-bt thead { display: none; }
  .dmt-bt tr.dmt-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center;
    width: 100%; margin: 0 0 12px; padding: 12px; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm);
  }
  .dmt-bt td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .dmt-bt td:nth-child(1), .dmt-bt td:nth-child(2), .dmt-bt td:nth-child(3) { grid-column: 1 / -1; }
  .dmt-bt td:nth-child(3) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 10px; border-radius: 10px; background: var(--ink-50); }
  .dmt-bt td:nth-child(4) { grid-column: 1; }
  .dmt-bt td:nth-child(5) { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .dmt-bt .dmt-amt { width: 100%; min-width: 0; height: 46px; font-size: 17px; font-weight: 700; }
  .dmt-bt td:nth-child(5) .btn { height: 46px; padding: 0 16px; }
  .dmt-bank__name { font-size: 14px; color: var(--ink-500); font-weight: 650; }
  .dmt-bn { font-size: 17px; }
  .dmt-acct { font-size: 17px; }
}

/* very narrow: the amount gets its own line and the two buttons share the next one */
@container (max-width: 400px) {
  .dmt-bt td:nth-child(4), .dmt-bt td:nth-child(5) { grid-column: 1 / -1; }
  .dmt-bt td:nth-child(5) { justify-content: stretch; }
  .dmt-bt td:nth-child(5) .btn { flex: 1 1 0; }
  .dmt-who__name { font-size: 22px; }
  .dmt-who__mobile { font-size: 20px; }
}

/* ---- dialogs (payment, add beneficiary, onboarding) ---- */
@container (max-width: 560px) {
  .dmt-pd { padding: 12px 14px; border-width: 1.5px; }
  .dmt-pd__top { gap: 8px; padding-bottom: 10px; }
  .dmt-pd__name { font-size: 21px; }
  .dmt-pd__amount { text-align: left; width: 100%; }
  .dmt-pd__amt { font-size: 30px; }
  .dmt-pd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 12px 0; }
  .dmt-pd__grid > :nth-child(1), .dmt-pd__grid > :nth-child(2) { grid-column: 1 / -1; }
  .dmt-pd__val { font-size: 16px; }
  .dmt-pd__acct { font-size: 20px; }
  .dmt-pd__ifsc { font-size: 17px; }
  .dmt-slot { padding: 12px; gap: 10px; }
  .dmt-slot__amt { min-width: 0; font-size: 22px; flex: 1 1 100%; }
  .dmt-slot__act { flex: 1 1 100%; }
  .dmt-slot__act .btn, .dmt-slot__act .dmt-otp { flex: 1 1 auto; min-width: 0; }
  .dmt-modal__row { flex-wrap: wrap; }
  .dmt-modal__row .btn { flex: 1 1 auto; }
  .dmt-seg { display: flex; width: 100%; }
  .dmt-seg__btn { flex: 1; min-width: 0; padding: 0 10px; }
  .dmt-pd__mode { flex-direction: column; align-items: flex-start; }
}
@container (max-width: 360px) {
  .dmt-pd__grid { grid-template-columns: minmax(0, 1fr); }
  .dmt-pd__amt { font-size: 26px; }
}

@media (max-width: 720px) {
  .dmt-modal { align-items: end; padding: 8px; }
  .dmt-modal__box { border-radius: 20px 20px 14px 14px; padding: 16px; max-height: calc(100vh - 16px); }
  .dmt-top .btn { width: 100%; }
}

/* =========================================================================
   Beneficiary list, more polished: an avatar, a green tick when verified, a
   Verify button when not, a red bin icon to delete.
   ========================================================================= */
.dmt-bt { border-collapse: separate; border-spacing: 0 8px; }
.dmt-bt th { border-bottom: 0; padding: 4px 14px; font-size: 11.5px; letter-spacing: .08em; color: var(--ink-500); }
.dmt-bt tbody tr.dmt-row { background: var(--white); box-shadow: 0 0 0 1px var(--ink-200); border-radius: 14px; transition: box-shadow .15s, transform .15s; }
.dmt-bt tbody tr.dmt-row:hover { box-shadow: 0 0 0 1.5px var(--brand-300), 0 8px 22px rgba(10, 35, 66, .08); }
.dmt-bt td { padding: 12px 14px; border-bottom: 0; background: var(--white); }
.dmt-bt td:first-child { border-radius: 14px 0 0 14px; }
.dmt-bt td:last-child { border-radius: 0 14px 14px 0; }

.dmt-who2 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dmt-who2__t { min-width: 0; }
.dmt-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; background: #2563eb; }
.dmt-av--1 { background: #0d9488; }
.dmt-av--2 { background: #7c3aed; }
.dmt-av--3 { background: #d97706; }
.dmt-av--4 { background: #db2777; }
.dmt-av--5 { background: #475569; }

.dmt-vok { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 3px; }
.dmt-vtick { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.dmt-vname { font-size: 12.5px; color: #166534; }
:root[data-theme="dark"] .dmt-vname { color: #86efac; }
.dmt-vname .dmt-note { font-size: 11.5px; color: var(--ink-500); }
.dmt-vbtn2 { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; height: 28px; padding: 0 12px; border: 1.5px solid #f59e0b; border-radius: 99px; background: #fffbeb; color: #92400e; font: inherit; font-size: 12.5px; font-weight: 750; cursor: pointer; transition: background .15s, box-shadow .15s; }
.dmt-vbtn2:hover { background: #fef3c7; box-shadow: 0 2px 8px rgba(245, 158, 11, .3); }
.dmt-vbtn2:disabled { opacity: .7; cursor: default; }
:root[data-theme="dark"] .dmt-vbtn2 { background: #2b2113; color: #fcd34d; }

.dmt-acts { white-space: nowrap; text-align: right; }
.dmt-acts .dmt-pay { min-width: 64px; }
.dmt-del { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; vertical-align: middle; border: 1.5px solid #fecdd3; border-radius: 10px; background: #fff1f2; color: #e11d48; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .12s; }
.dmt-del:hover { background: #e11d48; color: #fff; border-color: #e11d48; transform: translateY(-1px); }
.dmt-del:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(225, 29, 72, .3); }
:root[data-theme="dark"] .dmt-del { background: #2a1620; border-color: #5b2335; color: #fb7185; }

@container (max-width: 940px) {
  .dmt-bt { border-spacing: 0; }
  .dmt-bt tbody tr.dmt-row { box-shadow: var(--shadow-sm), 0 0 0 1px var(--ink-200); }
  .dmt-bt td { background: transparent; border-radius: 0; padding: 0; }
  .dmt-who2 { gap: 10px; }
  .dmt-acts { text-align: left; }
  .dmt-bt td:nth-child(5) { align-items: center; }
  .dmt-bt td:nth-child(5) .dmt-del { width: 46px; height: 46px; margin-left: 0; flex: none; }
}
@container (max-width: 400px) {
  .dmt-bt td:nth-child(5) .dmt-pay { flex: 1 1 0; }
}

/* beneficiary list: the account holder's name and the account number are what is read first - bigger and bold */
.dmt-bn { font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--ink-900); }
.dmt-acct { font-size: 19px; font-weight: 800; letter-spacing: .03em; color: var(--ink-900); }
.dmt-ifsc { font-size: 12.5px; font-weight: 600; }
.dmt-av { width: 44px; height: 44px; font-size: 15px; }
@container (max-width: 940px) {
  .dmt-bn { font-size: 20px; }
  .dmt-acct { font-size: 20px; }
}

/* bank name, the amount being typed, and the amount in words */
.dmt-bank__name { font-size: 16px; font-weight: 800; color: var(--ink-900); }
.dmt-bank .dmt-logo { width: 42px; height: 42px; }
.dmt-bt .dmt-amt { font-size: 18px; font-weight: 800; color: var(--ink-900); }
.dmt-bt .dmt-amt::placeholder { font-weight: 600; color: var(--ink-400); }
.dmt-amtwords { margin-top: 4px; font-size: 12.5px; font-style: italic; font-weight: 650; line-height: 1.3; color: #15803d; max-width: 190px; }
.dmt-amtwords:empty { display: none; }
@container (max-width: 940px) {
  .dmt-bank__name { font-size: 16px; color: var(--ink-900); }
  .dmt-amtwords { max-width: none; font-size: 13px; }
}
.dmt-acct { white-space: nowrap; }

/* payment popup on a wide screen: details on the left, the payment slots on the right, so it fits on one page without scrolling */
.dmt-modal__box--pay { max-width: min(1180px, 100%); padding: 22px 26px; }
@container (min-width: 880px) {
  #dmtPayBody [data-pi] { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  #dmtPayBody [data-pi] > .dmt-pd { margin-bottom: 0; padding: 16px 20px; }
  #dmtPayBody .dmt-pd__top { padding-bottom: 10px; }
  #dmtPayBody .dmt-pd__name { font-size: 26px; }
  #dmtPayBody .dmt-pd__amt { font-size: 36px; }
  #dmtPayBody .dmt-pd__grid { padding: 12px 0; gap: 14px 22px; }
  #dmtPayBody .dmt-pd__acct { font-size: 24px; }
  #dmtPayBody .dmt-pd__ifsc { font-size: 20px; }
  #dmtPayBody .dmt-pd__val { font-size: 19px; }
  #dmtPayBody .dmt-slots__head { margin-top: 2px; }
  #dmtPayBody .dmt-slot { margin-bottom: 10px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .dmt-modal__box--pay { padding: 16px 22px; }
  #dmtPayBody .dmt-pd__amt { font-size: 30px; }
  #dmtPayBody .dmt-pd__grid { gap: 10px 20px; padding: 8px 0; }
}

/* Resend OTP: a quiet link that appears 10 seconds after the OTP was sent */
.dmt-resend { align-self: center; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.dmt-resend b { display: inline-block; min-width: 1.2em; text-align: center; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.dmt-linkbtn { align-self: center; padding: 4px 6px; border: 0; background: none; color: var(--brand-500); font: inherit; font-size: 13.5px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.dmt-linkbtn:hover { color: var(--brand-600, var(--brand-500)); }
.dmt-linkbtn:focus-visible { outline: none; border-radius: 6px; box-shadow: var(--ring); }
.dmt-linkbtn--in { animation: dmtLinkIn .35s ease both; }
@keyframes dmtLinkIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Payment slots: one card per slot with a number, the amount, and its state
   (waiting, OTP, paying, paid, failed). Printing: full, half, quarter, thermal.
   ========================================================================= */
.dmt-modal--top { z-index: 1100; }
.dmt-slip--preview { display: block; }
.dmt-slip--preview.rc-slip { color: #000; background: #fff; }
.dmt-slip--preview table { width: 100%; border-collapse: collapse; }
.dmt-slip--preview th, .dmt-slip--preview td { padding: 3px 2px; text-align: left; vertical-align: top; border-bottom: 1px solid #ccc; }
.dmt-slip--preview .tx { margin: 6px 0; padding-bottom: 6px; border-bottom: 1px dashed #000; }
.dmt-slip--preview .tot { margin-top: 6px; padding-top: 4px; border-top: 1px solid #000; }
.dmt-slip--preview .r { text-align: right; }
.dmt-slip--preview .head { text-align: center; }
.dmt-slip--preview .head h2 { margin: 0; text-align: center; }
.dmt-slip--preview .k { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.dmt-slip--preview .k b { max-width: 62%; text-align: right; word-break: break-word; }

@media print {
  body.dmt-print--full #dmtSlip, body.dmt-print--half #dmtSlip, body.dmt-print--quarter #dmtSlip { margin: 0; font-family: Arial, sans-serif; }
  body.dmt-print--full #dmtSlip { width: 194mm; max-width: none; font-size: 13px; line-height: 1.5; }
  body.dmt-print--half #dmtSlip { width: 194mm; max-width: none; font-size: 11.5px; line-height: 1.4; }
  body.dmt-print--quarter #dmtSlip { width: 97mm; max-width: none; font-size: 9.5px; line-height: 1.35; }
  body.dmt-print--full .dmt-slip td, body.dmt-print--full .dmt-slip th, body.dmt-print--half .dmt-slip td, body.dmt-print--half .dmt-slip th { border-bottom: 1px solid #ccc; padding: 4px 6px; }
  body.dmt-print--half .dmt-slip .sec { margin-top: 6px; }
  body.dmt-print--quarter .dmt-slip .sec { margin-top: 6px; }
  body.dmt-print--quarter .dmt-slip .head h2 { font-size: 1.2em; }
}

/* ---- the slots ---- */
.dmt-slot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px 14px 20px; margin-bottom: 10px; background: var(--white); border: 1.5px solid var(--ink-200); border-radius: 16px; overflow: hidden; transition: border-color .2s, background .2s, box-shadow .2s; }
.dmt-slot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ink-200); transition: background .2s; }
.dmt-slot--idle::before { background: #94a3b8; }
.dmt-slot--otpsending::before, .dmt-slot--verifying::before { background: #3b82f6; }
.dmt-slot--otp { border-color: #93c5fd; box-shadow: 0 6px 20px rgba(37, 99, 235, .1); }
.dmt-slot--otp::before { background: #2563eb; }
.dmt-slot--ok { background: #f0fdf4; border-color: #86efac; }
.dmt-slot--ok::before { background: #16a34a; }
.dmt-slot--fail { background: #fff1f2; border-color: #fda4af; }
.dmt-slot--fail::before { background: #e11d48; }
.dmt-slot--pending { background: #fffbeb; border-color: #fcd34d; }
.dmt-slot--pending::before { background: #f59e0b; }
:root[data-theme="dark"] .dmt-slot--ok { background: #0f2a1a; border-color: #166534; }
:root[data-theme="dark"] .dmt-slot--fail { background: #2a1620; border-color: #7f1d36; }
:root[data-theme="dark"] .dmt-slot--pending { background: #2b2113; border-color: #7a5a14; }

.dmt-slot__no { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); font-size: 15px; font-weight: 800; }
.dmt-slot--otp .dmt-slot__no { background: #2563eb; color: #fff; }
.dmt-slot--ok .dmt-slot__no { background: #16a34a; color: #fff; }
.dmt-slot--fail .dmt-slot__no { background: #e11d48; color: #fff; }
.dmt-slot--pending .dmt-slot__no { background: #f59e0b; color: #fff; }
.dmt-slot__amt { min-width: 150px; font-size: 26px; font-weight: 850; letter-spacing: -.01em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.dmt-slot__amt small { display: inline-block; margin-top: 2px; padding: 1px 9px; border-radius: 99px; background: var(--ink-100); font-size: 11.5px; font-weight: 700; letter-spacing: 0; color: var(--ink-500); }
.dmt-slot__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 230px; min-width: 0; justify-content: flex-end; }
.dmt-slot .dmt-otp { width: 150px; height: 44px; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .35em; border: 2px solid var(--ink-200); border-radius: 12px; background: var(--white); color: var(--ink-900); }
.dmt-slot .dmt-otp:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.dmt-slot__act .btn { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
.dmt-slot--ok .dmt-tick, .dmt-slot--fail .dmt-tick, .dmt-slot--pending .dmt-tick { flex: none; }
.dmt-via { flex: 1 1 100%; text-align: right; font-size: 12px; color: var(--ink-500); }
.dmt-slot--ok .dmt-utr__v { font-family: var(--mono); font-size: 16px; font-weight: 800; color: #166534; }
:root[data-theme="dark"] .dmt-slot--ok .dmt-utr__v { color: #86efac; }
.dmt-slot--fail .dmt-err { font-weight: 650; }
.dmt-slot--ok { animation: dmtSlotOk .6s ease; }
.dmt-slot--fail { animation: dmtSlotShake .45s ease; }
@keyframes dmtSlotOk { 0% { transform: scale(.98); } 50% { transform: scale(1.012); } 100% { transform: none; } }
@keyframes dmtSlotShake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .dmt-slot--ok, .dmt-slot--fail { animation: none; } }

.dmt-printrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 14px; border: 1px dashed var(--ink-200); border-radius: 14px; background: var(--ink-50); }

@container (max-width: 560px) {
  .dmt-slot { padding: 12px 12px 12px 16px; gap: 10px 12px; }
  .dmt-slot__amt { min-width: 0; flex: 1 1 0; font-size: 22px; }
  .dmt-slot__act { flex: 1 1 100%; justify-content: stretch; }
  .dmt-slot .dmt-otp { flex: 1 1 100px; width: auto; min-width: 0; }
  .dmt-slot__act .btn { flex: 1 1 auto; }
  .dmt-via { text-align: left; }
}

/* =========================================================================
   Payment details: amount and mode, then a Beneficiary card, then a Remitter card.
   ========================================================================= */
.dmt-pcol { display: grid; gap: 12px; min-width: 0; }
.dmt-pcard { padding: 14px 18px; background: var(--white); border: 1.5px solid var(--ink-200); border-radius: 16px; box-shadow: 0 1px 2px rgba(10, 35, 66, .04); }
.dmt-pcard--amt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; background: linear-gradient(135deg, #0a2342, #123a6b); border-color: transparent; color: #fff; }
.dmt-pcard--amt .dmt-pd__label { color: rgba(255, 255, 255, .7); }
.dmt-pcard--amt .dmt-pd__amt { font-size: 36px; color: #fff; text-align: left; }
.dmt-pcard--amt .dmt-words { margin-top: 2px; color: #86efac; text-align: left; }
.dmt-pcard__mode .dmt-seg { background: rgba(255, 255, 255, .14); }
.dmt-pcard__mode .dmt-seg__btn { color: rgba(255, 255, 255, .85); height: 38px; min-width: 84px; padding: 0 18px; }
.dmt-pcard__mode .dmt-seg__btn.is-on { background: #fff; color: #0a2342; }
.dmt-pcard__t { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ink-200); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bank-navy-2, var(--brand-500)); }
:root[data-theme="dark"] .dmt-pcard__t { color: var(--brand-300); }
.dmt-pcard__t svg { color: var(--bank-gold, #c9a24b); }
.dmt-pcard__name { margin-bottom: 4px; font-size: 24px; font-weight: 850; line-height: 1.2; color: var(--ink-900); overflow-wrap: anywhere; }
.dmt-vok--pay { margin: 0 0 6px; }
.dmt-prow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px dashed var(--ink-200); }
.dmt-pcard__name + .dmt-prow, .dmt-vok--pay + .dmt-prow { margin-top: 6px; }
.dmt-prow__k { flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.dmt-prow__v { min-width: 0; text-align: right; font-weight: 700; color: var(--ink-900); overflow-wrap: anywhere; }
.dmt-prow__v .dmt-pd__acct { font-size: 22px; }
.dmt-prow__v .dmt-pd__ifsc { font-size: 18px; }
.dmt-prow__v .dmt-pd__val { font-size: 17px; }
.dmt-prow__v .dmt-bank--lg { justify-content: flex-end; font-size: 17px; }

@container (min-width: 880px) {
  #dmtPayBody [data-pi] > .dmt-pcol { margin-bottom: 0; }
}
@container (max-width: 560px) {
  .dmt-pcard { padding: 12px 14px; }
  .dmt-pcard--amt .dmt-pd__amt { font-size: 30px; }
  .dmt-pcard__name { font-size: 21px; }
  .dmt-pcard__mode { width: 100%; }
  .dmt-pcard__mode .dmt-seg { width: 100%; }
  .dmt-prow { flex-wrap: wrap; gap: 4px 12px; }
  .dmt-prow__v .dmt-pd__acct { font-size: 20px; }
}

/* the DMT receipt can be long: the preview shows all of it (scaled with zoom, so its height follows) */
#dmtPreviewPage { height: auto; min-height: 120px; }
#dmtPreviewPage .rc-slip { transform: none; zoom: .55; }
#dmtPreviewPage.is-thermal .rc-slip { zoom: .72; }

/* (the DMT receipt prints on whatever page the printer is set to: a named @page made Chrome insert a blank first page) */

/* masked without being a password field: no saved-password list, strong-password hint or "save password?" prompt */
input.is-masked { -webkit-text-security: disc; text-security: disc; }
.segmented__btn { white-space: nowrap; }

/* =========================================================================
   Sign-in errors: a clear message with an icon, a red field that shakes, and
   the reason right under it.
   ========================================================================= */
.alert--login { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border: 1.5px solid #fecdd3; border-left-width: 5px; border-radius: 14px; background: linear-gradient(135deg, #fff1f2, #fff7f7); color: #9f1239; font-size: 14px; font-weight: 650; line-height: 1.45; box-shadow: 0 8px 22px rgba(225, 29, 72, .12); animation: alertIn .3s ease both; }
.alert--login .alert__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e11d48; color: #fff; box-shadow: 0 4px 10px rgba(225, 29, 72, .3); }
.alert--login .alert__ico svg { width: 20px; height: 20px; }
.alert--login .alert__txt { flex: 1; min-width: 0; align-self: center; overflow-wrap: anywhere; }
.alert--login.alert--warn { border-color: #fde68a; border-left-color: #f59e0b; background: linear-gradient(135deg, #fffbeb, #fffdf5); color: #92400e; box-shadow: 0 8px 22px rgba(245, 158, 11, .14); }
.alert--login.alert--warn .alert__ico { background: #f59e0b; box-shadow: 0 4px 10px rgba(245, 158, 11, .32); }
.alert--login.alert--ok { border-color: #bbf7d0; border-left-color: #16a34a; background: linear-gradient(135deg, #f0fdf4, #f7fffa); color: #14532d; box-shadow: 0 8px 22px rgba(22, 163, 74, .12); }
.alert--login.alert--ok .alert__ico { background: #16a34a; box-shadow: 0 4px 10px rgba(22, 163, 74, .3); }
:root[data-theme="dark"] .alert--login { background: #2a1620; border-color: #5b2335; color: #fecdd3; }
:root[data-theme="dark"] .alert--login.alert--warn { background: #2b2113; border-color: #5a4318; color: #fde68a; }
:root[data-theme="dark"] .alert--login.alert--ok { background: #11291d; border-color: #1c5a36; color: #bbf7d0; }

.field__error { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 13px; font-weight: 650; color: #be123c; animation: alertIn .25s ease both; }
.field__error[hidden] { display: none; }
.field__error svg { flex: none; }
.field__input.is-bad { border-color: #e11d48; background: #fff1f2; box-shadow: 0 0 0 4px rgba(225, 29, 72, .14); }
:root[data-theme="dark"] .field__input.is-bad { background: #2a1620; }

.is-shake { animation: loginShake .45s ease both; }
@keyframes loginShake { 0%, 100% { transform: none; } 18% { transform: translateX(-7px); } 36% { transform: translateX(6px); } 54% { transform: translateX(-4px); } 72% { transform: translateX(3px); } }
@keyframes alertIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .is-shake, .alert--login, .field__error { animation: none; } }

/* PIN: bold stars (the digits themselves are never in the field) */
#pin.pin-stars { font-family: Arial, Helvetica, sans-serif; font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: .28em; padding-top: 12px; color: var(--ink-900); }
#pin::placeholder { font-size: 22px; font-weight: 700; letter-spacing: .3em; }

.alert[hidden], .alert--login[hidden] { display: none !important; }

/* a short, clear "done" message (beneficiary deleted) */
.ab-done { display: grid; justify-items: center; gap: 8px; padding: 10px 0 4px; text-align: center; }
.ab-done__tick { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff; box-shadow: 0 0 0 8px rgba(22, 163, 74, .16); animation: dmtSlotOk .5s ease; }

/* =========================================================================
   Settlement / Vendor payment (payout.js) - the rest reuses the Money Transfer classes
   ========================================================================= */
.po-rules { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; }
.po-rule { padding: 5px 12px; border-radius: 99px; background: var(--ink-100); border: 1px solid var(--ink-200); font-size: 12.5px; color: var(--ink-700); }
.po-rule b { color: var(--ink-900); margin-right: 4px; }
.po-chip { display: inline-block; padding: 3px 12px; border-radius: 99px; background: linear-gradient(135deg, #0a2342, #123a6b); color: #fff; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.po-lead { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-700); }
.po-regrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.po-regrow .field { flex: 1 1 260px; min-width: 0; margin-bottom: 0; }
.po-regrow .btn { height: 48px; }
.po-regacts { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; }
.po-unver { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: var(--ink-100); color: var(--ink-500); font-size: 12px; font-weight: 650; }
.po-act { display: grid; gap: 12px; justify-content: stretch; flex: 1 1 260px; }
.po-need { display: grid; gap: 6px; }
.po-need .field__label { margin: 0; font-size: 12.5px; }
.po-input { width: 100%; min-width: 0; text-align: left; letter-spacing: .06em; font-size: 18px; }
.po-input.is-masked { letter-spacing: .3em; }
.po-go { height: 48px; width: 100%; font-size: 16px; }
.po-err { padding: 9px 12px; border-radius: 10px; background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; font-size: 13.5px; font-weight: 650; }
:root[data-theme="dark"] .po-err { background: #2a1620; border-color: #5b2335; color: #fecdd3; }
.dmt-slot__act.po-act { justify-content: stretch; }

/* =========================================================================
   AEPS: one page, its banks and AEPS Settlement as tabs
   ========================================================================= */
.aepstabs { display: flex; gap: 8px; margin: 0 0 18px; padding: 6px; overflow-x: auto; scrollbar-width: none; background: var(--white); border: 1px solid var(--bank-line, var(--ink-200)); border-radius: 16px; box-shadow: 0 1px 2px rgba(10, 35, 66, .04); }
.aepstabs::-webkit-scrollbar { display: none; }
.aepstab { flex: 1 1 0; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--ink-700); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.aepstab:hover { background: var(--ink-100); color: var(--ink-900); }
.aepstab.is-on { background: linear-gradient(135deg, #0a2342, #123a6b); color: #fff; box-shadow: 0 6px 16px rgba(10, 35, 66, .28); }
.aepstab__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(201, 162, 75, .22); color: var(--bank-gold, #c9a24b); }
.aepstab--settle.is-on .aepstab__ico { background: rgba(255, 255, 255, .16); color: var(--bank-gold-2, #e6c77a); }
/* the tabs choose the bank: the old chooser and its "Change bank" bar are not needed */
.aeps--tabs #providerCard, .aeps--tabs #providerBar { display: none !important; }
@media (max-width: 620px) { .aepstab { padding: 9px 12px; font-size: 13px; } }

/* AEPS Settlement */
.pa-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 10px; }
.pa-bal { display: flex; flex-direction: column; }
.pa-bal__k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.pa-bal__v { font-size: 34px; font-weight: 850; letter-spacing: -.02em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 22px; align-items: start; margin-bottom: 8px; }
.po-aeps .field__hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-500); }
.pa-res { display: grid; gap: 10px; }
.pa-res__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--ink-200); font-size: 14.5px; }
.pa-res__row span { color: var(--ink-500); }
.pa-res__row b { color: var(--ink-900); text-align: right; overflow-wrap: anywhere; }
.po-aeps .rc-go { max-width: 360px; }
.db-svc__ico--rose { background: linear-gradient(135deg, #f43f5e, #9f1239); }
.db-svc__ico--slate { background: linear-gradient(135deg, #475569, #0f172a); }
.dmt-slot .po-input { width: 100%; text-align: left; letter-spacing: .06em; font-size: 18px; }
.dmt-slot .po-input.is-masked { letter-spacing: .3em; }

/* AEPS landing: the three banks and AEPS Settlement as big buttons */
a.provider__opt { text-decoration: none; color: inherit; }
.provider__logo--settle { display: grid; place-items: center; background: linear-gradient(135deg, #0a2342, #123a6b); color: var(--bank-gold-2, #e6c77a); box-shadow: inset 0 -4px 0 var(--bank-gold, #c9a24b); }
.provider__opt--settle { border-style: dashed; }

/* =========================================================================
   Reports: the sidebar sub-menu, the report list and the report table
   ========================================================================= */

/* ---- sidebar: Reports with a sub-menu (details/summary, no script) ---- */
.nav__group { margin-bottom: 3px; }
.nav__group > summary { list-style: none; cursor: pointer; }
.nav__group > summary::-webkit-details-marker { display: none; }
.nav__group > summary .nav__chev { margin-left: auto; transition: transform .2s; }
.nav__group[open] > summary .nav__chev { transform: rotate(180deg); }
.nav__subs { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 18px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .14); }
.nav__subhead { margin: 10px 0 3px 10px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(230, 199, 122, .65); }
.nav__sub { display: block; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 550; color: rgba(226, 232, 240, .75); text-decoration: none; transition: background .15s, color .15s; }
.nav__sub:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav__sub.is-active { background: rgba(201, 162, 75, .2); color: #fff; font-weight: 650; }

/* ---- the report list ---- */
.rp-group { margin: 22px 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rp-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--bank-line, var(--ink-200)); border-radius: 12px; background: var(--white); color: var(--ink-900); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rp-card:hover { border-color: var(--brand-400); box-shadow: 0 6px 18px rgba(10, 35, 66, .08); transform: translateY(-1px); }
.rp-card__t { font-size: 15px; font-weight: 700; }
.rp-card__d { font-size: 12.5px; color: var(--ink-500); line-height: 1.4; }

/* ---- one report ---- */
.rp-filters { padding: 18px; margin-bottom: 16px; }
.rp-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.rp-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rp-result { padding: 14px 16px 16px; }
.rp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.rp-count { font-size: 14px; font-weight: 700; color: var(--ink-900); margin-right: auto; }
.rp-find { min-width: 220px; }
.rp-scroll { overflow: auto; max-height: 68vh; border: 1px solid var(--bank-line, var(--ink-200)); border-radius: 10px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-table th { position: sticky; top: 0; z-index: 1; padding: 9px 12px; text-align: left; white-space: nowrap; font-size: 11.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-700); background: var(--ink-100, #f1f5f9); border-bottom: 1px solid var(--bank-line, var(--ink-200)); }
.rp-table td { padding: 9px 12px; border-bottom: 1px solid var(--bank-line, var(--ink-200)); color: var(--ink-900); vertical-align: top; max-width: 320px; overflow-wrap: anywhere; }
.rp-table tbody tr:hover td { background: rgba(20, 64, 120, .04); }
.rp-no { width: 1%; color: var(--ink-400); text-align: right; }
.rp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-nil { color: var(--ink-400); }
.rp-empty { padding: 26px 12px !important; text-align: center; color: var(--ink-500); }
.rp-more { margin-top: 12px; text-align: center; }
.rp-tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 750; white-space: nowrap; background: var(--ink-100, #f1f5f9); color: var(--ink-700); }
.rp-tag--ok { background: rgba(22, 163, 74, .14); color: #15803d; }
.rp-tag--bad { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.rp-tag--wait { background: rgba(217, 119, 6, .14); color: #b45309; }

/* =========================================================================
   Reports, statement layout (Recharge first): menu stays closed until opened,
   compact filters, one line per record in bold black, PDF / Excel icons.
   ========================================================================= */

/* ---- the left menu stays closed on these pages; the burger in the top bar opens it ---- */
body.nav-hidden .shell { grid-template-columns: minmax(0, 1fr); }
body.nav-hidden .sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 268px; max-width: 84vw; height: auto;
  transform: translateX(-100%); transition: transform .22s ease;
}
body.nav-hidden .sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
body.nav-hidden .sidebar__close { display: inline-flex; }
body.nav-hidden .topbar__burger { display: inline-flex; }
body.nav-hidden .sidebar__backdrop:not([hidden]) { display: block; }
body.nav-hidden.nav-open { overflow: hidden; }
body.nav-hidden .wrap--full { padding-top: 14px; padding-bottom: 20px; }

/* ---- the statement ---- */
.rp--v2 { --rpv-ink: #000; --rpv-line: #d5dbe5; --rpv-head: #eef2f8; }
:root[data-theme="dark"] .rp--v2 { --rpv-ink: #fff; --rpv-line: #2b3750; --rpv-head: #1a2540; }

.rpv-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--rpv-line); border-radius: 10px; background: var(--white); }
.rpv-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rpv-f label { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-500); }
.rpv-in { height: 32px; padding: 0 9px; border: 1px solid var(--ink-200); border-radius: 7px; background: var(--white); color: var(--ink-900); font: inherit; font-size: 13px; }
.rpv-in:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.rpv-f .rpv-in { width: 138px; }
.rpv-f--rows .rpv-in { width: 76px; }
.rpv-acts { display: flex; gap: 8px; margin-left: auto; }
.rpv-btn { height: 32px; padding: 0 14px; border: 1px solid var(--ink-200); border-radius: 7px; background: var(--ink-100); color: var(--ink-900); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.rpv-btn:hover { border-color: var(--brand-400); }
.rpv-btn:disabled { opacity: .55; cursor: default; }
.rpv-btn--go { background: var(--navy-800, #0a2342); border-color: var(--navy-800, #0a2342); color: #fff; }
.rpv-err { margin: 0 0 8px; }

.rpv-card { border: 1px solid var(--rpv-line); border-radius: 10px; background: var(--white); overflow: hidden; }
.rpv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; border-bottom: 1px solid var(--rpv-line); }
.rpv-ttl { margin-right: auto; min-width: 0; }
.rpv-name { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.01em; color: var(--rpv-ink); }
.rpv-meta { margin: 2px 0 0; font-size: 12px; color: var(--ink-500); }
.rpv-meta b { color: var(--rpv-ink); font-weight: 700; }
.rpv-dot { margin: 0 6px; }
.rpv-tools { display: flex; align-items: center; gap: 8px; }
.rpv-find { width: 200px; }
.rpv-ico { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 46px; height: 44px; padding: 0; border: 1px solid var(--ink-200); border-radius: 8px; background: var(--white); font: inherit; font-size: 9.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.rpv-ico:disabled { opacity: .4; cursor: default; }
.rpv-ico--pdf { color: #dc2626; }
.rpv-ico--xls { color: #16a34a; }
.rpv-ico:not(:disabled):hover { background: var(--ink-100); border-color: currentColor; }

.rpv-scroll { max-height: 74vh; border: 0; border-radius: 0; }
.rpv-table { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 700; color: var(--rpv-ink); }
.rpv-table th { position: sticky; top: 0; z-index: 1; padding: 8px 12px; text-align: left; white-space: nowrap; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--rpv-ink); background: var(--rpv-head); border-bottom: 2px solid var(--rpv-line); }
.rpv-table td { padding: 7px 12px; white-space: nowrap; color: var(--rpv-ink); border-bottom: 1px solid var(--rpv-line); }
.rpv-table tbody tr:nth-child(even) td { background: rgba(120, 140, 170, .07); }
.rpv-table tbody tr:hover td { background: rgba(20, 64, 120, .09); }
.rpv-table .rp-no { width: 1%; font-weight: 600; color: var(--ink-500); text-align: right; }
.rpv-table .rp-num { text-align: right; font-variant-numeric: tabular-nums; }
.rpv-table .rp-nil { color: var(--ink-400); font-weight: 600; }
.rpv-table .rp-empty { white-space: normal; padding: 22px 12px; text-align: center; font-weight: 600; color: var(--ink-500); }
.rpv-card .rp-more { padding: 10px; border-top: 1px solid var(--rpv-line); margin: 0; }

@media (max-width: 620px) {
  .rpv-f .rpv-in { width: 128px; }
  .rpv-acts { margin-left: 0; }
  .rpv-find { width: 150px; }
}
@media print { .rpv-filters, .rpv-tools { display: none; } }

/* ---- Reports: the printed page (company letterhead + rows), shown only while printing ---- */
.rpv-ico--prn { color: #1d4ed8; }
.rp-printbox { display: none; }
@page rpPage { size: A4 landscape; margin: 9mm; }
@media print {
  body.rp-printing .sidebar, body.rp-printing .sidebar__backdrop, body.rp-printing .topbar, body.rp-printing .fbar, body.rp-printing .ticker,
  body.rp-printing .shotguard, body.rp-printing .watermark { display: none !important; }
  body.rp-printing { margin: 0; padding: 0; background: #fff; overflow: visible; }
  body.rp-printing .shell, body.rp-printing .shell__main, body.rp-printing .wrap { display: block; min-height: 0; height: auto; margin: 0; padding: 0; max-width: none; overflow: visible; }
  body.rp-printing .wrap > :not(.rp) { display: none !important; }
  body.rp-printing .rp > :not(#rpPrintBox) { display: none !important; }
  body.rp-printing .rp-printbox { display: block; page: rpPage; background: #fff; color: #000; font: 9pt/1.35 Arial, Helvetica, sans-serif; }

  .rp-printbox .pr-head { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; border-bottom: 2px solid #000; }
  .rp-printbox .pr-logo { height: 15mm; width: auto; }
  .rp-printbox .pr-co { flex: 1; }
  .rp-printbox .pr-co h2 { margin: 0 0 2px; font-size: 15pt; }
  .rp-printbox .pr-ttl { text-align: right; font-size: 14pt; font-weight: 700; }
  .rp-printbox .pr-ttl small { display: block; margin-top: 2px; font-size: 9pt; font-weight: 600; }
  .rp-printbox .pr-who { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 6px 0 8px; border-bottom: 1px solid #000; }
  .rp-printbox .pr-who i { font-style: normal; color: #444; }
  .rp-printbox .pr-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 8.5pt; font-weight: 700; }
  .rp-printbox .pr-table th, .rp-printbox .pr-table td { padding: 3px 6px; border: 1px solid #777; text-align: left; white-space: nowrap; }
  .rp-printbox .pr-table th { background: #e8e8e8; text-transform: uppercase; font-size: 8pt; }
  .rp-printbox .pr-table .r { text-align: right; }
  .rp-printbox .pr-table thead { display: table-header-group; }
  .rp-printbox .pr-table tr { break-inside: avoid; }
  .rp-printbox .pr-foot { margin-top: 10px; padding-top: 5px; border-top: 1px solid #000; text-align: center; font-size: 8pt; }
}

/* ---- Reports: print one transaction (receipt) ---- */
.rpv-table .rp-act { width: 1%; padding: 3px 8px; text-align: center; }
.rpv-rowprn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--ink-200); border-radius: 6px; background: var(--white); color: #1d4ed8; cursor: pointer; }
.rpv-rowprn:hover { background: var(--ink-100); border-color: #1d4ed8; }
@page rpSlip { size: A4 portrait; margin: 10mm; }
@media print {
  body.rp-slip .rp-printbox { page: rpSlip; }
  .rp-printbox .pr-slip { width: 170mm; max-width: 100%; border: 1.5px solid #000; padding: 6mm; }
  .rp-printbox .pr-st { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; }
  .rp-printbox .pr-st__t { font-size: 12pt; font-weight: 700; }
  .rp-printbox .pr-st__s { padding: 2px 12px; border: 1.5px solid #000; border-radius: 99px; font-weight: 800; text-transform: uppercase; }
  .rp-printbox .pr-amt { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; margin-bottom: 8px; border: 1px solid #000; background: #f1f1f1; }
  .rp-printbox .pr-amt b { font-size: 18pt; }
  .rp-printbox .sec { margin-top: 8px; }
  .rp-printbox .sec__t { padding: 3px 0; border-bottom: 1.5px solid #000; font-weight: 800; text-transform: uppercase; font-size: 8.5pt; }
  .rp-printbox .k { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 1px dotted #777; }
  .rp-printbox .k b { text-align: right; word-break: break-word; max-width: 65%; }
}
@media print { .rpv-rowprn { display: none; } }

/* ---- Reports: a column with a main line and small lines under it (DMT) ---- */
.rpv-table td .rpv-m { line-height: 1.3; }
.rpv-table td .rpv-s { margin-top: 1px; font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--ink-500); }
.rpv-table td:has(.rpv-m) { padding-top: 6px; padding-bottom: 6px; }
@media print { .rp-printbox .pr-table td .s { font-size: 7pt; font-weight: 600; color: #333; } }

@media print {
  .rp-printbox .pr-slip .tot { margin-top: 6px; padding-top: 4px; border-top: 1.5px solid #000; font-weight: 800; }
  .rp-printbox .pr-slip .tot .k { border-bottom: 0; font-size: 11pt; }
}

/* ---- Reports: BBPS category tags, one colour per category ---- */
.rp-cat { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.rp-cat--0 { background: rgba(124, 58, 237, .14); color: #6d28d9; }
.rp-cat--1 { background: rgba(217, 119, 6, .16); color: #b45309; }
.rp-cat--2 { background: rgba(234, 88, 12, .15); color: #c2410c; }
.rp-cat--3 { background: rgba(37, 99, 235, .14); color: #1d4ed8; }
.rp-cat--4 { background: rgba(13, 148, 136, .15); color: #0f766e; }
.rp-cat--5 { background: rgba(219, 39, 119, .14); color: #be185d; }
.rp-cat--6 { background: rgba(22, 163, 74, .15); color: #15803d; }
.rp-cat--7 { background: rgba(100, 116, 139, .17); color: #475569; }
:root[data-theme="dark"] .rp-cat--0 { color: #c4b5fd; }
:root[data-theme="dark"] .rp-cat--1 { color: #fcd34d; }
:root[data-theme="dark"] .rp-cat--2 { color: #fdba74; }
:root[data-theme="dark"] .rp-cat--3 { color: #93c5fd; }
:root[data-theme="dark"] .rp-cat--4 { color: #5eead4; }
:root[data-theme="dark"] .rp-cat--5 { color: #f9a8d4; }
:root[data-theme="dark"] .rp-cat--6 { color: #86efac; }
:root[data-theme="dark"] .rp-cat--7 { color: #cbd5e1; }

/* ---- Reports: the receipt of one transaction on the paper the user chose (same sizes as the Recharge receipt) ---- */
.rp-slipbox { display: none; }
@media print {
  body.rp-slipprint .sidebar, body.rp-slipprint .sidebar__backdrop, body.rp-slipprint .topbar, body.rp-slipprint .fbar, body.rp-slipprint .ticker,
  body.rp-slipprint .shotguard, body.rp-slipprint .watermark { display: none !important; }
  body.rp-slipprint { margin: 0; padding: 0; background: #fff; overflow: visible; }
  body.rp-slipprint .shell, body.rp-slipprint .shell__main, body.rp-slipprint .wrap { display: block; min-height: 0; height: auto; margin: 0; padding: 0; max-width: none; overflow: visible; }
  body.rp-slipprint .wrap > :not(.rp) { display: none !important; }
  body.rp-slipprint .rp > :not(#rpSlipBox) { display: none !important; }
  body.rp-slipprint .rp-slipbox { display: block; background: #fff; }
  body.rp-sz--full .rp-slipbox, body.rp-sz--half .rp-slipbox, body.rp-sz--quarter .rp-slipbox { page: rcA4; }
  body.rp-sz--thermal .rp-slipbox { page: rcThermal; }
  body.rp-slipprint .rp-slipbox .rc-slip { transform: none; padding: 0; }
  body.rp-sz--full .rp-slipbox .rc-slip, body.rp-sz--half .rp-slipbox .rc-slip { width: 194mm; }
  body.rp-sz--quarter .rp-slipbox .rc-slip { width: 97mm; }
  body.rp-sz--thermal .rp-slipbox .rc-slip { width: 72mm; }
  body.rp-slipprint .rc-slip td, body.rp-slipprint .rc-slip th { border-bottom: 1px solid #ccc; }
}
.rc-slip .tot { margin-top: 6px; padding-top: 4px; border-top: 1px solid #000; font-weight: 800; }
.rc-slip .tx { margin: 4px 0; padding: 3px 0; border-bottom: 1px dotted #000; }
.rc-slip table { width: 100%; border-collapse: collapse; }
.rc-slip th, .rc-slip td { padding: 3px 4px; text-align: left; vertical-align: top; }
.rc-slip .r { text-align: right; }
.rc-slip--half .slip__logo-img { width: 105px; }

/* =========================================================================
   Vendor payment / Settlement: a tighter page - less empty space above the
   mobile number, the customer and the beneficiaries one under the other
   ========================================================================= */
.wrap:has(.po) { padding-top: 14px; padding-bottom: 32px; }
.wrap:has(.po) .page__head { margin-bottom: 10px; }
.wrap:has(.po) .page__title { font-size: 21px; }
.wrap:has(.po) .page__sub { margin-top: 2px; font-size: 13px; }
.po { display: grid; gap: 12px; align-content: start; }
.po > .card { padding: 14px 16px; margin: 0; }
.po .card__head { margin-bottom: 10px; }
.po .dmt-top .field__label { margin-bottom: 4px; }
.po-rules { margin-top: 10px; }
.po .dmt-who { margin-bottom: 10px; align-items: center; }
.po .dmt-who__chan { margin-bottom: 4px; }
.po .dmt-who__name { font-size: 22px; }
.po .dmt-who__mobile { font-size: 18px; }
.po .dmt-ch__big { font-size: 20px; }
.po .dmt-search { margin-bottom: 8px; }
.po .dmt-bt td { padding-top: 8px; padding-bottom: 8px; }
.po .dmt-empty { padding: 6px 0; }
@media (max-width: 620px) {
  .wrap:has(.po) { padding-top: 10px; }
  .po > .card { padding: 12px; }
  .po .dmt-who__lim { text-align: left; }
}

/* Transaction PIN: six boxes, filled one by one */
.po-pin { display: flex; gap: 8px; }
.po-pinbox { flex: 1 1 0; min-width: 0; max-width: 52px; height: 52px; padding: 0; text-align: center; font-size: 22px; font-weight: 800; border: 1.5px solid var(--ink-200); border-radius: 12px; background: var(--white); color: var(--ink-900); font-family: var(--mono); }
.po-pinbox:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.po-pinfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.po-soon { text-align: center; max-width: 360px; }
.po-soon__t { margin: 6px 0; font-size: 22px; font-weight: 800; color: var(--ink-900); }
.po-soon .dmt-modal__row { justify-content: center; }

/* Transaction PIN panel (Settlement / Vendor payment) */
.po-need--pin { gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, var(--ink-50, #f8fafc), var(--white)); border: 1px solid var(--ink-200); box-shadow: 0 1px 2px rgba(10, 35, 66, .04); }
.po-pinhead { display: flex; align-items: center; gap: 12px; }
.po-pinico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #0a2342, #123a6b); color: var(--bank-gold-2, #e6c77a); box-shadow: 0 6px 14px rgba(10, 35, 66, .25); }
.po-pint { font-size: 15px; font-weight: 800; color: var(--ink-900); letter-spacing: -.01em; }
.po-pins { margin-top: 1px; font-size: 12.5px; color: var(--ink-500); line-height: 1.35; }
.po-need--pin .po-pin { justify-content: center; gap: 10px; margin: 4px 0 2px; }
.po-need--pin .po-pinbox { max-width: 50px; height: 56px; font-size: 24px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--ink-200); box-shadow: inset 0 -2px 0 rgba(10, 35, 66, .04); transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.po-need--pin .po-pinbox.is-filled { border-color: var(--brand-500, #1d4ed8); background: rgba(29, 78, 216, .06); }
.po-need--pin .po-pinbox:focus { border-color: var(--bank-gold, #c9a24b); box-shadow: 0 0 0 4px rgba(201, 162, 75, .22); transform: translateY(-1px); }
.po-need--pin .po-pinfoot { margin-top: 2px; }
.po-pinsafe { font-size: 12px; color: var(--ink-500); }
.po-need--pin .dmt-linkbtn { font-size: 13px; font-weight: 700; }
.po-go { border-radius: 14px; box-shadow: 0 8px 18px rgba(22, 163, 74, .25); }
:root[data-theme="dark"] .po-need--pin { background: var(--ink-100); }
:root[data-theme="dark"] .po-need--pin .po-pinbox { background: var(--ink-50, #0f172a); }
@media (max-width: 420px) { .po-need--pin { padding: 12px; } .po-need--pin .po-pin { gap: 6px; } .po-need--pin .po-pinbox { height: 50px; font-size: 20px; } }

/* Payment popup, right side: amount, the amount in words, then the PIN under it (one column) */
.po-slot { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.po-slot .dmt-slot__no { align-self: flex-start; }
.po-slot .dmt-slot__amt { min-width: 0; }
.po-slot .po-words { margin-top: 4px; font-size: 13px; font-weight: 650; color: var(--ink-700); line-height: 1.35; }
.po-slot .po-act { display: grid; width: 100%; flex: none; }
.po-need--pin { width: 100%; box-sizing: border-box; }
.po-need--pin .po-pin { display: flex; width: 100%; justify-content: center; }
.po-need--pin .po-pinbox { flex: none; width: 46px; max-width: none; }
@media (max-width: 420px) { .po-need--pin .po-pinbox { width: 40px; } }
