/* TSP Model Payment System — shared styles */

:root {
  --bg: #f5f6fa;
  --white: #ffffff;
  --border: #e7e9f1;
  --text: #16182b;
  --text-muted: #7a7f94;
  --text-faint: #a3a7b8;

  --indigo: #2b8aff;
  --indigo-dark: #1868d6;
  --indigo-light: #eaf3ff;
  --violet: #0b1b4a;

  --amber: #f3a712;
  --amber-dark: #c9860a;
  --crimson: #b3123f;
  --crimson-dark: #8d0e32;
  --navy: #0b1b4a;

  --green: #16a34a;
  --green-bg: #e7f9ef;
  --orange: #f59e0b;
  --orange-bg: #fff1dc;
  --teal: #0ea5a5;
  --teal-dark: #0a7a7a;

  --brand-navy: #0b1b4a;
  --brand-blue: #2b8aff;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 20px rgba(16, 22, 58, 0.06);
  --shadow-pop: 0 12px 30px rgba(16, 22, 58, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- App shell ---------- */

.app {
  display: grid;
  grid-template-columns: 264px 1fr;
  grid-template-rows: 76px 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
}

/* ---------- Topbar ---------- */

.topbar {
  grid-area: topbar;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__collapse {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__darkmode {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.topbar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.topbar__name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.topbar__email { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Sidebar ---------- */

.sidebar {
  grid-area: sidebar;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 24px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__word {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.3px;
}

.brand__word--dark { color: var(--brand-navy); }
.brand__word--blue { color: var(--brand-blue); }

.menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  text-transform: uppercase;
  padding: 6px 10px 10px;
}

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }

.nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
}

.nav__item:hover { background: #f7f8fc; }

.nav__item.is-active {
  background: var(--indigo-light);
  color: var(--indigo);
  font-weight: 700;
}

.nav__item.is-active::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--indigo);
}

.nav__item .chev { margin-left: auto; color: var(--text-faint); }

.role-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--indigo-light);
  border-radius: var(--radius-md);
  padding: 12px;
}

.role-box__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
}

.role-box__label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.role-box__value { font-size: 14px; font-weight: 700; color: var(--indigo); }

/* ---------- Main ---------- */

.main {
  grid-area: main;
  padding: 28px 32px 48px;
  min-width: 0;
}

/* KYC banner */

.kyc-banner {
  position: relative;
  background: linear-gradient(120deg, var(--indigo), var(--violet));
  border-radius: var(--radius-md);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kyc-banner__row { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; flex-wrap: wrap; }

.kyc-banner__tag {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.kyc-banner h2 { font-size: 14.5px; font-weight: 800; margin: 0; }
.kyc-banner p { margin: 0; max-width: 560px; font-size: 12px; opacity: 0.85; line-height: 1.5; }

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn--white { background: var(--white); color: var(--indigo); }
.btn--indigo-outline { background: var(--indigo-light); color: var(--indigo); }
.btn--indigo { background: var(--indigo); color: var(--white); }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }

/* Card row */

.card-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 18px;
  margin-bottom: 24px;
}

.wallet-card {
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  color: var(--white);
  min-height: 196px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.wallet-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.wallet-card__label { font-size: 13px; font-weight: 700; opacity: 0.95; }
.wallet-card__info {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
}
.wallet-card__balance { font-size: 24px; font-weight: 800; margin-top: 8px; }

.bills-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  min-height: 196px;
  box-shadow: var(--shadow-card);
}

.bills-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bills-card__title { font-size: 13px; font-weight: 800; letter-spacing: 0.4px; }
.pill { border-radius: 999px; padding: 4px 10px; font-size: 10.5px; font-weight: 700; }
.pill--orange { background: var(--orange-bg); color: var(--orange); }
.pill--green { background: var(--green-bg); color: var(--green); }
.pill--red { background: #fde8ec; color: #dc2626; }
.pill--gray { background: #eef0f5; color: var(--text-muted); }

.dk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.dk-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dk-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dk-card__icon svg { width: 22px; height: 22px; stroke: #fff; }

.dk-card__title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.dk-card__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }

.dk-card__partner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}

.dk-card__partner svg { width: 13px; height: 13px; stroke: var(--text-faint); }
.dk-card__partner strong { color: var(--text); font-weight: 800; }

.dk-card__doc {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
}

.dk-card__doc svg { width: 15px; height: 15px; stroke: var(--indigo); }
.dk-card__doc--muted { color: var(--text); }
.dk-card__doc--muted svg { stroke: var(--text); }


/* Lists row */

.lists-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.list-card__title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.list-row:first-of-type { border-top: none; }

.list-row__name { font-size: 14.5px; font-weight: 700; }
.list-row__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.list-row__method { font-size: 10.5px; font-weight: 800; color: var(--indigo); }
.list-row__path { font-size: 12.5px; color: var(--text-muted); font-family: "SFMono-Regular", Consolas, "Courier New", monospace; }
.list-row__latency { font-size: 12px; color: var(--text-faint); margin-right: 12px; }
.list-row__right { display: flex; align-items: center; }

/* ---------- Dashboard: KPI row ---------- */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.kpi-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.kpi-tile__icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.kpi-tile__icon svg { width: 17px; height: 17px; }

.kpi-tile__value { font-size: 21px; font-weight: 800; line-height: 1.2; }
.kpi-tile__label { font-size: 12px; color: var(--text-muted); margin: 4px 0 8px; }

.kpi-tile__trend { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.kpi-tile__trend--up { color: var(--green); }
.kpi-tile__trend--down { color: #dc2626; }

/* ---------- Dashboard: Quick Actions ---------- */

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

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  color: var(--text);
}
.quick-action:hover { background: var(--indigo-light); }

.quick-action__icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--white);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.quick-action__icon svg { width: 16px; height: 16px; }
.quick-action__label { font-size: 11.5px; font-weight: 700; }

/* ---------- Dashboard: Service Performance ---------- */

.service-perf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.service-perf-row:first-of-type { border-top: none; }

.service-perf-row__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.service-perf-row__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.service-perf-row__icon svg { width: 17px; height: 17px; }
.service-perf-row__name { font-size: 14px; font-weight: 700; }
.service-perf-row__count { font-size: 11.5px; color: var(--text-muted); }
.service-perf-row__earning { font-size: 13.5px; font-weight: 800; color: var(--green); text-align: right; white-space: nowrap; }

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

.bank-slider-wrap { margin-bottom: 26px; }

.section-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.bank-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.bank-slider::-webkit-scrollbar { height: 6px; }
.bank-slider::-webkit-scrollbar-thumb { background: #d9dbe8; border-radius: 999px; }

.bank-slide-card {
  flex: 0 0 240px;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: var(--white);
  scroll-snap-align: start;
  box-shadow: var(--shadow-card);
}

.bank-slide-card__bank { font-size: 12.5px; font-weight: 700; opacity: 0.9; }
.bank-slide-card__ifsc { font-size: 11px; opacity: 0.85; margin-top: 12px; }

.bank-slide-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.bank-slide-card__label-sm { font-size: 10px; opacity: 0.8; margin-bottom: 3px; }
.bank-slide-card__acct { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; }
.bank-slide-card__balance { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; }

.eye-btn {
  border: none;
  background: rgba(255, 255, 255, 0.22);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.eye-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bank-slide-card--amber { background: linear-gradient(135deg, var(--amber), var(--amber-dark)); }
.bank-slide-card--crimson { background: linear-gradient(135deg, var(--crimson), var(--crimson-dark)); }
.bank-slide-card--navy { background: linear-gradient(135deg, #232b57, var(--navy)); }
.bank-slide-card--teal { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }

.gw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 14px;
}

.gw-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ef2a4;
  display: inline-block;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch input:checked + .toggle-slider { background: rgba(255, 255, 255, 0.9); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); background: var(--indigo); }

.toggle-switch--onlight .toggle-slider { background: #d8dce6; }
.toggle-switch--onlight .toggle-slider::before { background: #fff; }
.toggle-switch--onlight input:checked + .toggle-slider { background: var(--indigo); }
.toggle-switch--onlight input:checked + .toggle-slider::before { background: #fff; }

.settings-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.settings-tab {
  padding: 10px 2px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
}

.settings-tab.is-active { color: var(--indigo); border-bottom-color: var(--indigo); }

.settings-banner {
  background: linear-gradient(120deg, var(--indigo), var(--violet));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 26px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.settings-banner h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.settings-banner p { font-size: 13px; opacity: 0.85; line-height: 1.6; margin: 0; max-width: 520px; }

.info-row { display: flex; align-items: center; gap: 12px; }
.info-row__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--indigo-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.info-row__value { font-weight: 800; font-size: 14px; }
.info-row__label { font-size: 11.5px; color: var(--text-muted); }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.settings-row:first-of-type { border-top: none; padding-top: 0; }
.settings-row__title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.settings-row__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; max-width: 560px; }
.settings-row__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn--danger:hover { background: #fde8ec; color: #dc2626; border-color: #fde8ec; }
.icon-btn svg { width: 14px; height: 14px; }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--border);
  padding: 14px;
  z-index: 200;
  display: none;
}

.profile-dropdown.is-open { display: block; }

.profile-dropdown__user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.profile-dropdown__user-info { flex: 1; min-width: 0; }
.profile-dropdown__user-name { font-size: 14px; font-weight: 800; }
.profile-dropdown__user-sub { font-size: 12px; color: var(--text-muted); }

.profile-dropdown__divider { border-top: 1px solid var(--border); margin: 8px 4px; }

.profile-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.profile-dropdown__item:hover { background: var(--bg); }

.profile-dropdown__item-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.route-settings-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.route-settings-btn:hover { background: rgba(255, 255, 255, 0.35); }
.route-settings-btn svg { width: 13px; height: 13px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 35, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.modal-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 0;
}

.modal-card__title { font-size: 16px; font-weight: 800; }
.modal-card__subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-card__body { padding: 18px 24px 4px; }
.modal-card__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 16px; }

.modal-card__toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
}

.modal-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}

.view-txn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  opacity: 0.95;
}

.view-txn:hover { opacity: 1; }
.view-txn svg { stroke: var(--white); }

.add-bank-slide {
  flex: 0 0 200px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed #cfd3e3;
  background: #fbfbfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  scroll-snap-align: start;
}

.add-bank-slide__plus {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px dashed #cfd3e3;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-faint);
}

.add-bank-slide__label { font-size: 13px; font-weight: 700; }

.methods-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.method-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.method-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.method-card__title { font-size: 15px; font-weight: 800; }
.method-card__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; flex: 1; }

.method-card .btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 9px 16px;
  font-size: 12.5px;
}

.payout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.payout-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin: 0;
}

.payout-header__actions { display: flex; gap: 10px; }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-muted);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 18px;
}

.filter-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--white);
  color: var(--text);
}

.filter-pill.is-selected { background: var(--text); color: var(--white); border-color: var(--text); }

table.data-table {
  width: 100%;
  border-collapse: collapse;
}

table.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
}

table.data-table td {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.contact-name { display: flex; align-items: center; gap: 12px; }

.avatar-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}

.contact-name__info strong { display: block; font-size: 14.5px; font-weight: 700; }

.role-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 2px 9px;
}

.muted { color: var(--text-faint); }

.kebab-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
}
.kebab-btn:hover { background: var(--bg); }

.txn-id { font-family: "SFMono-Regular", Consolas, "Courier New", monospace; font-size: 12px; color: var(--text-muted); }

.amt-debit { font-weight: 700; color: var(--text); }
.amt-credit { font-weight: 800; color: var(--green); }

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-controls { display: flex; gap: 6px; }

.page-btn, .page-num {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.page-num.is-active { background: var(--text); color: var(--white); border-color: var(--text); }
.page-btn:disabled { opacity: 0.4; }

.filter-panel {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.filter-panel__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-panel__row:last-of-type { margin-bottom: 0; }

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.filter-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}

.filter-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.bbps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.bbps-header h1 { font-size: 22px; font-weight: 800; margin: 0; }

.bharat-connect-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.bharat-connect-badge__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--indigo), var(--orange));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.bharat-connect-badge__text b { color: var(--indigo); }
.bharat-connect-badge__text span { color: var(--orange); }

.bbps-section-title {
  font-size: 15.5px;
  font-weight: 800;
  margin: 0 0 18px;
}

.bbps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 22px 12px;
}

.bbps-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.bbps-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-card);
}

.bbps-tile__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.bbps-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

/* Responsive */

@media (max-width: 1180px) {
  .card-row { grid-template-columns: 1fr 1fr; }
  .lists-row { grid-template-columns: 1fr; }
  .methods-row { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; }
  .sidebar { display: none; }
  .card-row { grid-template-columns: 1fr; }
  .methods-row { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }
}
