/*
  Cashout Charge styles.
  Each provider page picks up its own colours from the data-provider
  attribute on <body>. One memorable element: the result is a torn receipt slip.
*/

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

:root {
  --font: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: #1c2025;
  --muted: #454d56;
  --tint: #e9eef3;
  --deep: #2f4358;
  --ink: #2f4358;
  --on-deep: #ffffff;
  --footer-surface: #f8fafb;
  --footer-border: #dce1e5;
}

body[data-provider="bkash"] {
  --tint: #ffcdd2;
  --deep: #d62267;
  --ink: #a50e48;
}
body[data-provider="nagad"] {
  --tint: #fff2cc;
  --deep: #d9382a;
  --ink: #b92b1a;
}
body[data-provider="rocket"] {
  --tint: #ead6ec;
  --deep: #89288f;
  --ink: #6f1d75;
}
body[data-provider="upay"] {
  --tint: #ffec8a;
  --deep: #024697;
  --ink: #024697;
}

[data-p="bkash"] { --c: #d62267; }
[data-p="nagad"] { --c: #f24f41; }
[data-p="rocket"] { --c: #89288f; }
[data-p="upay"] { --c: #024697; }

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

body {
  margin: 0;
  background: var(--tint);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

a {
  color: var(--ink);
}

/* ---------- header and navbar ---------- */

:root { --site-w: 72rem; }

.top__inner,
.page,
.foot__inner {
  max-width: var(--site-w);
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(28, 32, 37, 0.08);
}

.top__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.5rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

.menu__list,
.menu__drop {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.menu__item { position: relative; }

.menu__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.menu__link:hover,
.menu__toggle[aria-expanded="true"] {
  background: var(--tint);
}

.menu__link[aria-current="page"],
.menu__toggle.is-active {
  color: var(--ink);
  font-weight: 700;
}

.menu__caret {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 0.2s;
}

.menu__toggle[aria-expanded="true"] .menu__caret { transform: rotate(180deg); }

.menu__drop {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  min-width: 13rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(28, 32, 37, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(28, 32, 37, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

/* invisible bridge so hover is not lost crossing the gap */
.menu__drop::before {
  content: "";
  position: absolute;
  inset: -0.6rem 0 auto;
  height: 0.6rem;
}

.has-drop.is-open .menu__drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (hover: hover) {
  .has-drop:hover .menu__drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.menu__drop a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.menu__drop a::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--c, var(--ink));
}

.menu__drop a:hover { background: var(--tint); }

.menu__drop a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
  background: var(--tint);
}

.lang {
  justify-self: end;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(28, 32, 37, 0.06);
}

.lang button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 40rem) {
  .top__inner {
    grid-template-columns: 1fr auto;
    padding: 0.5rem 0.75rem 0.45rem;
    row-gap: 0.35rem;
  }
  .menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }
}

/* ---------- page ---------- */

.page {
  padding: 2rem 1.5rem 2.5rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.field label {
  display: block;
  font-weight: 500;
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  border-bottom: 3px solid var(--ink);
}

.amount:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.amount__sign {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
}

.amount input {
  flex: 1;
  min-width: 0;
  padding: 0.2rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 700 3rem/1.2 var(--font);
}

.amount input::placeholder { color: var(--muted); }

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.chip:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- channel choices ---------- */

.channels {
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
}

.channels legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.channel {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.channel.is-selected {
  background: #fff;
  border-color: var(--ink);
}

.channel input {
  margin-top: 0.45rem;
  accent-color: var(--ink);
}

.channel:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.channel__text {
  display: flex;
  flex-direction: column;
}

.channel__name {
  font-weight: 500;
  line-height: 1.4;
}

.channel__rate {
  color: var(--muted);
  font-size: 0.95rem;
}

.channel__tag {
  margin-inline-start: 0.5rem;
  padding: 0 0.4rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ---------- the receipt slip ---------- */

.slip {
  --tooth: 18px;
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 2rem;
  background: var(--deep);
  color: var(--on-deep);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}

.slip--empty {
  padding: 1.1rem 1.25rem;
  background: transparent;
  color: var(--text);
  border: 2px dashed var(--ink);
  -webkit-mask: none;
  mask: none;
}

.slip--empty p {
  margin: 0;
}

.slip__label {
  margin: 0;
  font-weight: 500;
}

.slip__fee {
  margin: 0 0 0.75rem;
  font-size: clamp(3rem, 15vw, 4.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.slip__rows {
  margin: 0 0 1rem;
}

.slip__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.slip__row dt,
.slip__row dd {
  margin: 0;
}

.slip__row dd {
  font-weight: 700;
}

.slip__dots {
  flex: 1;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.6);
  transform: translateY(-0.3em);
}

.slip__text {
  margin: 0.5rem 0 0;
  font-size: 0.97rem;
}

/* ---------- home: ranked list ---------- */

.rank {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.rank__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-inline-start: 6px solid var(--c);
  color: var(--text);
  text-decoration: none;
}

.rank__row:hover {
  background: rgba(255, 255, 255, 0.55);
}

.rank__who {
  display: flex;
  flex-direction: column;
}

.rank__channel {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.rank__fee {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.rank__tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- notes and footer ---------- */

.note {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.foot {
  background: var(--footer-surface);
  border-top: 1px solid var(--footer-border);
  font-size: 0.9375rem;
  color: var(--muted);
}

.foot__inner {
  padding: 2.5rem 1.5rem 1.25rem;
}

.foot p {
  margin: 0;
}

.foot__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 3rem;
  padding-bottom: 2rem;
}

.foot .brand {
  min-height: 44px;
}

.foot .brand > span:last-child {
  display: inline;
}

.foot p.foot__description {
  margin-top: 0.75rem;
  max-width: 32rem;
  line-height: 1.7;
}

.foot__nav h2 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.foot__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot__links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding-block: 0.4rem;
  color: var(--text);
  text-decoration: none;
}

.foot__links a::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c, var(--ink));
}

.foot__links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.foot__arrow {
  margin-inline-start: auto;
  color: var(--muted);
}

.foot__links a:hover,
.foot__bottom a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  font-size: 0.8125rem;
}

.foot__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  text-decoration: none;
}

@media (max-width: 30rem) {
  .amount input {
    font-size: 2.5rem;
  }
  .amount__sign {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- mobile refinements ---------- */

html, body { overflow-x: hidden; }
button, .chip, .channel, .rank__row { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

@media (max-width: 40rem) {
  body { font-size: 1rem; line-height: 1.6; }

  .top__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.5rem;
    padding: 0.5rem 0.75rem 0.45rem;
  }
  .brand { grid-column: 1; grid-row: 1; gap: 0.4rem; font-size: 1rem; }
  .lang { grid-column: 2; grid-row: 1; }
  .menu { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; min-width: 0; }
  .brand__mark { width: 2.25rem; height: 2.25rem; }
  .brand > span:last-child { display: none; }

  .menu__list { gap: 0.05rem; justify-content: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .menu__list::-webkit-scrollbar { display: none; }
  /* the ৳ mark already goes home, so the phones keep the bar to one clean row */
  .menu__item--home { display: none; }
  .menu__link { min-height: 44px; padding: 0.4rem 0.5rem; font-size: 0.9rem; }
  .menu__caret { width: 0.7rem; height: 0.7rem; }

  .lang button { min-height: 36px; min-width: 36px; padding: 0.3rem 0.5rem; font-size: 0.85rem; }

  /* full-width dropdown panel under the bar */
  .menu__item { position: static; }
  .menu__drop {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    min-width: 0;
    transform: translateY(-4px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
  }
  .has-drop.is-open .menu__drop,
  .has-drop:hover .menu__drop { transform: translateY(0); }
  .menu__drop a { min-height: 48px; padding: 0.6rem 0.8rem; }

  .page { padding: 1.25rem 1rem 2rem; }
  h1 { font-size: 1.6rem; line-height: 1.3; }
  h2 { margin-top: 1.5rem; font-size: 1.1rem; }
  .lead { margin-bottom: 1.1rem; font-size: 0.97rem; }

  .quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -1rem;
    padding: 0.1rem 1rem 0.3rem;
    scrollbar-width: none;
  }
  .quick::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; min-height: 40px; padding: 0.45rem 0.9rem; }

  .channels { margin-top: 1.4rem; }
  .channel { padding: 0.8rem; min-height: 56px; }
  .channel input { width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; }

  .slip { padding: 1.1rem 1rem 1.8rem; }
  .slip__fee { font-size: 2.9rem; }
  .slip__row { font-size: 0.95rem; }

  .rank__row { padding: 0.8rem 0.6rem 0.8rem 0.8rem; min-height: 60px; }
  .rank__fee { font-size: 1.2rem; }

  .foot__inner { padding: 1.75rem 1rem 1rem; }
  .foot__main { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 1.5rem; }
  .foot .brand { font-size: 1.2rem; }
  .foot__links { column-gap: 1.5rem; }
}

/* ---------- blog article ---------- */

.article {
  max-width: 46rem;
  margin-inline: auto;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink);
  text-decoration: none;
}

.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.article p {
  margin: 0 0 1.15rem;
}

.article ul {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.25rem;
}

.article li {
  margin-bottom: 0.4rem;
}

.article h2 {
  margin-top: 2.5rem;
}

/* contents box */
.toc {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid var(--footer-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.35rem;
}

.toc li { margin-bottom: 0.25rem; }

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* provider sections carry their own brand colour */
.post h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.post h2::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c, var(--ink));
}

/* comparison table */
.table-wrap {
  margin: 0 0 1.5rem;
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare caption {
  padding-bottom: 0.5rem;
  text-align: start;
  font-size: 0.875rem;
  color: var(--muted);
}

.compare th,
.compare td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--footer-border);
  text-align: start;
  vertical-align: top;
}

.compare thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.compare tbody th {
  font-weight: 500;
  white-space: nowrap;
}

.compare tbody th::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-inline-end: 0.45rem;
  border-radius: 50%;
  background: var(--c, var(--ink));
}

/* call to action */
.cta {
  margin-top: 2.5rem;
  padding: 1.25rem 1.25rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.cta h2 {
  margin: 0 0 0.4rem;
}

.cta p {
  margin-bottom: 0.9rem;
}

.cta__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta__links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--footer-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.cta__links a::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c, var(--ink));
}

.cta__links a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* footer links without the brand dot */
.foot__links--plain a::before { content: none; }

@media (max-width: 40rem) {
  .article { max-width: none; }
  .crumbs { margin-bottom: 1rem; font-size: 0.82rem; }
  .byline { font-size: 0.82rem; gap: 0.2rem 0.9rem; }
  .toc { padding: 0.85rem 0.95rem 1rem; }
  .article h2 { margin-top: 2rem; }
  .post h2 { gap: 0.5rem; }
  .cta { padding: 1rem 0.9rem 1.1rem; }
  .cta__links { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- blog listing + article cards ---------- */

.posts {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.posts__item a {
  display: block;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--footer-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  text-decoration: none;
}

.posts__item a:hover {
  border-color: var(--ink);
  background: #fff;
}

.posts__title {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.posts__desc {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.posts__meta {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.more {
  margin-top: 2.5rem;
}

.more h2 {
  margin-bottom: 0.9rem;
}

@media (max-width: 40rem) {
  .posts { gap: 0.7rem; margin-bottom: 1.5rem; }
  .posts__item a { padding: 0.85rem 0.9rem; }
  .posts__title { font-size: 1.02rem; }
  .posts__desc { font-size: 0.9rem; }
  .more { margin-top: 2rem; }
}

/* ---------- provider guide under the calculator ---------- */
.guide {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--footer-border);
}
.guide h2:first-child { margin-top: 0; }
.guide h3 { margin: 1.25rem 0 0.35rem; font-size: 1.05rem; }
.guide .compare td { font-variant-numeric: tabular-nums; }

/* ---------- homepage hub ---------- */
.home .hero { padding: 1.5rem 0 0.5rem; }
.hero__kicker, .feature__tag {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero h1 { max-width: 40rem; }
.hero .lead { max-width: 42rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--footer-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.feature {
  margin-top: 2.25rem;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}
.feature h2 { margin: 0 0 0.5rem; }
.feature h2 a { color: var(--text); text-decoration: none; }
.feature h2 a:hover { color: var(--ink); text-decoration: underline; }
.feature > p { max-width: 46rem; }
.feature__more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); }
.feature__calc { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--footer-border); }
.feature__calc h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.block { margin-top: 3rem; }
.block > h2 { margin: 0 0 0.35rem; }
.block__lead { margin: 0 0 1.1rem; color: var(--muted); }
.wallets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.wallet {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid var(--footer-border);
  border-top: 5px solid var(--c);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}
.wallet:hover { border-color: var(--c); }
.wallet__name { font-size: 1.2rem; color: var(--c); }
.wallet__rate b { font-size: 1.4rem; }
.wallet__more { font-size: 0.875rem; color: var(--muted); }
.wallet__go { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--c); }
.posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0.5rem; }
@media (max-width: 56rem) { .wallets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .feature { padding: 1rem 0.9rem; }
  .wallets, .posts--grid { grid-template-columns: minmax(0, 1fr); }
  .block { margin-top: 2.25rem; }
}

/* ================= Premium financial theme ================= */
:root {
  --font: "Manrope", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Hind Siliguri", Georgia, serif;
  --text: #16202e;
  --muted: #566070;
  --tint: #f7f3ec;
  --deep: #fffdf9;
  --ink: #3A342C;
  --gold: #b08d4a;
  --gold-soft: #e9dcc0;
  --line: rgba(58, 52, 44, 0.1);
  --footer-surface: #fffdf9;
  --footer-border: rgba(233, 220, 192, 0.18);
}
body { letter-spacing: 0.005em; }
body:not([data-provider]) {
  background: var(--surface-bg);
}
h1, h2, .article h2, .post h2, .feature h2, .cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
html[lang="bn"] h1, html[lang="bn"] h2 { font-family: "Hind Siliguri", var(--serif); font-weight: 700; line-height: 1.35; }

.top { background: rgba(255,253,249,0.85); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.brand__mark { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--deep); color: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(201,164,92,0.45); }
.brand__glyph { width: 1.7rem; height: auto; }
.menu__link { font-weight: 600; font-size: 0.95rem; }
.menu__drop { border-radius: 14px; border-color: var(--line); box-shadow: 0 24px 48px -20px rgba(58,52,44,0.35); }
.lang { background: rgba(58,52,44,0.06); }

.hero__kicker, .feature__tag {
  color: var(--gold) !important;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700;
}
.home .hero { padding: 3.5rem 0 1.5rem; }
.chips li { background: #fffdf9; border: 1px solid var(--gold-soft); color: var(--text); }

.feature, .card, .block article, .guide, .toc, .cta, .calc, .wallet-card, .post-card {
  border-radius: 18px;
}
.feature {
  background: #fffdf9 !important;
  color: var(--text) !important;
  border: 1px solid rgba(201,164,92,0.35) !important;
  box-shadow: 0 30px 60px -30px rgba(58,52,44,0.35);
}
.feature h2 a, .feature p { color: var(--text) !important; }
.feature .feature__more { color: var(--gold) !important; }
.feature__more { color: var(--gold) !important; font-weight: 600; }

.foot { background: var(--footer-surface); color: var(--text); border-top: 2px solid var(--gold); }
.foot a { color: var(--text); }
.foot a:hover { color: var(--ink); }
.foot__nav h2 { color: var(--text); font-family: var(--font); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; }
.foot .brand { color: var(--text); }

a { text-underline-offset: 3px; }
:focus-visible { outline-color: var(--gold); }

/* ================= Design system v2: tokens, rhythm, components ================= */
:root {
  --surface-bg: #fffdf9;
  --surface-card: #ffffff;
  --surface-dark: #0c1626;
  --text: #0e1726;
  --muted: #525f72;
  --gold: #b38e46;
  --gold-soft: #f1e7d0;
  --emerald: #0b6b44;
  --line: rgba(14, 23, 38, 0.08);
  --tint: var(--surface-bg);
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px;
  --r-pill: 9999px; --r-ctl: 12px; --r-card: 18px;
  --sh-rest: 0 2px 8px -2px rgba(12,22,38,.05), 0 0 0 1px rgba(12,22,38,.06);
  --sh-lift: 0 20px 36px -12px rgba(12,22,38,.12), 0 0 0 1px rgba(179,142,70,.35);
}
body { font-size: 1rem; line-height: 1.65; }
body:not([data-provider]) {
  background: var(--surface-bg);
}
.page { padding-inline: 2rem; }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.5vw + .5rem, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 1.35; }
.lead, .block__lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 40rem; }

/* hero */
.home .hero { padding: var(--s7) 0 var(--s5); }
.hero h1 { max-width: 18ch; margin: var(--s2) 0 var(--s3); }
.chips { gap: var(--s2); margin-top: var(--s4); }
.chips li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-card); border: 1px solid var(--gold-soft); font-size: .875rem; font-weight: 600; }

/* sections */
.block { margin-top: var(--s7); }
.block > h2 { margin-bottom: var(--s2); }
.feature { padding: var(--s6) !important; margin-top: var(--s4); background: #fffdf9 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px rgba(12,22,38,.55) !important; }
.feature h2 { max-width: 24ch; margin: var(--s2) 0 var(--s3); }
.feature__more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: gap .2s; }
.feature__more:hover { gap: 12px; }

/* wallet cards */
.wallets { gap: var(--s4); margin-top: var(--s4); }
.wallet {
  display: flex; flex-direction: column; gap: var(--s2); height: 100%;
  padding: var(--s4); border-radius: var(--r-card); background: var(--surface-card);
  box-shadow: var(--sh-rest); border: 0; border-top: 4px solid var(--c);
  text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s;
}
.wallet:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.wallet__name { font-family: var(--serif); font-size: 1.5rem; color: var(--c); }
.wallet__rate { color: var(--muted); font-size: .9rem; }
.wallet__rate b { display: block; font-size: 1.75rem; color: var(--emerald); font-variant-numeric: tabular-nums; }
.wallet__more { margin-top: auto; font-size: .85rem; color: var(--muted); padding-top: var(--s2); border-top: 1px solid var(--line); }

/* post cards */
.posts--grid { gap: var(--s4); margin-top: var(--s4); }
.posts__item > a {
  display: flex; flex-direction: column; gap: var(--s2); height: 100%;
  padding: var(--s4); border-radius: var(--r-card); background: var(--surface-card);
  box-shadow: var(--sh-rest); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s;
}
.posts__item > a:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.posts__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.posts__desc { color: var(--muted); font-size: .95rem; }

/* controls */
input, select, .chip, button.chip { border-radius: var(--r-ctl); }
.lang button { border-radius: var(--r-pill); }

@media (max-width: 640px) {
  .page { padding-inline: 1.25rem; }
  .home .hero { padding: var(--s6) 0 var(--s3); }
  .feature { padding: 28px 20px !important; }
  .block { margin-top: var(--s6); }
  .wallet, .posts__item > a { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .wallet, .posts__item > a, .feature__more { transition: none; } }
@media (max-width:640px){.feature__more{display:inline}}

/* ================= Design system v3: warm soft-white, site-wide ================= */
:root {
  --surface-bg: #fffdf9;
  --surface-warm: #f5efe4;
  --surface-card: #fffdf9;
  --line: rgba(60, 44, 20, 0.09);
  --sh-rest: 0 1px 2px rgba(60,44,20,.04), 0 8px 24px -14px rgba(60,44,20,.14), 0 0 0 1px rgba(60,44,20,.06);
}
body, body[data-provider] {
  background: var(--surface-bg);
}
/* wallet brand colour kept as a soft wash + stripe instead of a full flood */
body[data-provider] .page { position: relative; }
body[data-provider] .page::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 320px; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 260px at 20% 0, color-mix(in srgb, var(--deep) 12%, transparent), transparent 70%);
}
.top { background: rgba(251,248,243,.86); }
.menu__link:hover, .menu__toggle[aria-expanded="true"], .menu__drop a:hover, .menu__drop a[aria-current="page"] { background: var(--surface-warm); }
.menu__drop { background: var(--surface-card); }

.page { padding-top: var(--s6); padding-bottom: var(--s7); }
h1 { font-family: var(--serif); color: var(--text); }
body[data-provider] h1 { color: var(--ink); }
h2, h3 { font-family: var(--serif); color: var(--text); }
html[lang="bn"] h3 { font-family: "Hind Siliguri", var(--serif); }

/* calculator panel */
body[data-provider] .field,
body[data-provider] .channels {
  background: var(--surface-card); border-radius: var(--r-card); box-shadow: var(--sh-rest);
  padding: var(--s4); margin-top: var(--s4);
}
body[data-provider] .field { border-top: 4px solid var(--deep); }
.field label, .channels legend { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.channels legend { float: left; width: 100%; margin-bottom: var(--s3); }
.amount { border-bottom: 2px solid var(--line); padding-bottom: var(--s1); }
.amount:focus-within { outline: 0; border-bottom-color: var(--ink); }
.amount input { font-variant-numeric: tabular-nums; }
.chip { border: 1px solid var(--line); background: var(--surface-bg); padding: 8px 16px; font-weight: 600; transition: all .15s; }
.chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.channel { background: var(--surface-bg); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 14px 16px; transition: border-color .15s, background .15s; }
.channel:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.channel.is-selected { background: var(--surface-card); border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.channel__tag { border-color: var(--emerald); color: var(--emerald); border-radius: var(--r-pill); padding: 0 8px; font-weight: 700; }
.slip { margin-top: var(--s4); border-radius: var(--r-card) var(--r-card) 0 0; padding: var(--s4) var(--s4) var(--s5);
  background: linear-gradient(160deg, var(--deep), color-mix(in srgb, var(--deep) 75%, #0c1626)); }
.slip--empty { border-radius: var(--r-card); border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); background: var(--surface-card); color: var(--muted); }
.slip__fee { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .875rem; }

/* articles, guides, info pages */
.article { max-width: 46rem; margin-inline: auto; }
.article > section, .guide > section { margin-top: var(--s6); }
.article p, .article li, .guide p, .guide li { color: #2b3443; }
.article li + li, .guide li + li { margin-top: var(--s2); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .85rem; color: var(--muted); margin: 0 0 var(--s3); }
.crumbs a { color: var(--gold); text-decoration: none; font-weight: 600; }
.byline { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; }
.byline span { padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-warm); color: var(--muted); font-size: .8rem; font-weight: 600; }
.toc, .cta, .feature__calc, .article-calc, .guide, .more {
  background: var(--surface-card); border-radius: var(--r-card); box-shadow: var(--sh-rest);
  padding: var(--s4); margin-top: var(--s5); border: 0;
}
.toc { border-left: 3px solid var(--gold); }
.toc h2 { margin-top: 0; font-size: 1.2rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold); }
.cta { background: linear-gradient(135deg, #fffaf0, var(--surface-warm)); border: 1px solid var(--gold-soft); }
.cta h2 { margin-top: 0; }
.table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: var(--sh-rest); background: var(--surface-card); margin: var(--s3) 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { background: var(--surface-warm); text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
.rank li { border-bottom: 1px solid var(--line); }
.rank__row { border-radius: 8px; }
.rank__row:hover { background: var(--surface-warm); }
.posts:not(.posts--grid) { display: grid; gap: var(--s3); list-style: none; padding: 0; }
.posts__meta { color: var(--gold); font-size: .8rem; font-weight: 600; }
@media (max-width: 640px) {
  .page { padding-top: var(--s5); }
  body[data-provider] .field, body[data-provider] .channels, .toc, .cta, .guide, .more, .feature__calc, .article-calc { padding: 18px; }
  th, td { padding: 10px 12px; }
}

/* Site fixes for the white replacement (12 Nov 2026): keep the logo mark
   undistorted and never letterspace Bengali text (conjuncts break). */
.brand__mark { object-fit: contain; }
/* Logo mark: bare M only — no background tile, no border, no shadow. */
.brand__mark {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  image-rendering: pixelated;
}
/* Calculator-page article (.guide): flat, no card — no border, no shadow
   (owner choice, 12 Nov 2026). This class exists only on the four provider pages. */
.guide {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-top: var(--s5);
}
.guide .table-wrap { background: transparent; box-shadow: none; border-radius: 0; }
html[lang="bn"] .hero__kicker, html[lang="bn"] .feature__tag,
html[lang="bn"] .toc h2, html[lang="bn"] .field label,
html[lang="bn"] .channels legend { letter-spacing: 0; }

/* Header/footer brand is the pixel MFS wordmark only (owner choice, 12 Nov 2026).
   The pixel M icon stays as the favicon. */
.brand__wordmark { height: 2.75rem; width: auto; display: block; image-rendering: pixelated; }

/* ── Pixel theme (owner choice, 12 Nov 2026) ──────────────────────────────
   The theme now matches the pixel MFS wordmark logo: monochrome
   (white #FAF6EF, black #33302B, grey #B3B3B3), Cormorant Garamond serif
   for Latin display type (pixel font replaced 13 Nov 2026, owner choice),
   square corners, hard offset shadows, no gradients, no gold.
   Provider pages go monochrome too — no more pink/red/purple/blue. */
:root {
  --ink: #33302B;
  --deep: #33302B;
  --text: #33302B;
  --muted: #555555;
  --gold: #33302B;
  --gold-soft: #B3B3B3;
  --line: rgba(51, 48, 43, 0.2);
  --tint: #FAF6EF;
  --surface-bg: #FAF6EF;
  --surface-card: #FFFFFF;
  --surface-warm: #EFE9DB;
  --emerald: #33302B;
  --footer-surface: #FAF6EF;
  --footer-border: #33302B;
  --sh-rest: 4px 4px 0 #B3B3B3;
  --sh-lift: 6px 6px 0 #33302B;
  --r-pill: 0;
  --r-ctl: 0;
  --r-card: 0;
  --serif: "Cormorant Garamond", "Hind Siliguri", Georgia, serif;
}

/* Providers go monochrome (their pink/red/purple/blue is gone). */
body[data-provider="bkash"],
body[data-provider="nagad"],
body[data-provider="rocket"],
body[data-provider="upay"] { --ink: #33302B; --deep: #33302B; --tint: #FAF6EF; }
[data-p="bkash"], [data-p="nagad"], [data-p="rocket"], [data-p="upay"] { --c: #33302B; }

/* Display type is now Cormorant Garamond serif (13 Nov 2026, owner choice —
   pixel font replaced); heading and slip-fee sizes come from the base rules. */

/* Header: solid, flat, hard hairline. No blur. */
.top { background: var(--surface-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 2px solid #33302B; }
.menu__drop { border: 2px solid #33302B; border-radius: 0; box-shadow: 4px 4px 0 #B3B3B3; }
.lang { border-radius: 0; background: rgba(51, 48, 43, 0.08); }
.lang button { border-radius: 0; }

/* Calculator panel: square, hard black border. */
body[data-provider] .field { border: 2px solid #33302B; border-top: 4px solid #33302B; }
body[data-provider] .channels { border: 2px solid #33302B; }
.amount { border-bottom: 3px solid #33302B; }
.chip { border: 2px solid #33302B; border-radius: 0; }
.channel { border: 2px solid #33302B; }
.channel:hover { border-color: #33302B; }
.channel.is-selected { box-shadow: 4px 4px 0 #B3B3B3; }
.channel__tag { border-radius: 0; }

/* Receipt slip: flat black, square, no gradient. */
.slip { background: #33302B; border-radius: 0; }

/* Homepage cards, CTA, tables: square, hard borders. */
.feature { border: 2px solid #33302B !important; border-radius: 0 !important; box-shadow: 4px 4px 0 #B3B3B3 !important; }
.cta { background: var(--surface-card); border: 2px solid #33302B; }
.table-wrap { border-radius: 0; }

/* ── Featured images (pixel illustrations, 12 Nov 2026) ──────────────────
   Monochrome pixel art to match the logo: square corners, 2px black
   border, hard offset shadow, pixelated rendering. */
.hero-img { margin: 1.5rem 0 1.5rem; }
.hero-img img { display: block; width: 100%; height: auto; border: 2px solid #33302B; border-radius: 0; box-shadow: 4px 4px 0 #B3B3B3; image-rendering: pixelated; }
.feature__img { margin: 1rem 0 1.25rem; }
.feature__img img { display: block; width: 100%; height: auto; border: 2px solid #33302B; border-radius: 0; box-shadow: 4px 4px 0 #B3B3B3; image-rendering: pixelated; }
.posts__thumb { display: block; width: 100%; height: auto; margin-bottom: 0.75rem; border: 2px solid #33302B; border-radius: 0; image-rendering: pixelated; }

/* ── Mobile header: two rows (12 Nov 2026) ───────────────────────────────
   Row 1: logo + language switch. Row 2: nav on its own full-width line,
   so logo, nav and lang no longer crush into one tight row on phones.
   The wordmark also shrinks a little on small screens. */
@media (max-width: 40rem) {
  .brand__wordmark { height: 2rem; }
}

/* ── Mobile nav strip (12 Nov 2026) ──────────────────────────────────────
   The second header row was bare text on white and read flat: give it a
   grey strip with a hard top rule, flush to the header's bottom border,
   and a solid black chip for the current page. */
@media (max-width: 40rem) {
  .top__inner { row-gap: 0; padding-bottom: 0; }
  .menu { margin-inline: -0.75rem; }
  .menu__list { background: #EFE9DB; border-top: 2px solid #33302B; padding: 0.35rem 0.75rem; }
  .menu__link { border-radius: 0; }
  .menu__link[aria-current="page"] { background: #33302B; color: #FAF6EF; }
  .menu__toggle.is-active { background: #33302B; color: #FAF6EF; }
}
