/* panel/member.css — Member desk pages: dashboard, wallet, top up, withdraw, ROI, referral, chat, bank.
   Part of the split style.css. Keep the load order in includes/layout.php. */

.count {
  display: flex; gap: 12px; margin-top: 14px;
}

.count div { min-width: 56px; }

.count strong { display: block; font-family: var(--sans); font-size: 18px; color: #fff; }

.count span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }

.level-edit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }

.level-edit label { margin-top: 0; }

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

.package-card {
  border: 1px solid rgba(231,211,163,.3);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
}

.package-card h3 { font-size: 22px; }

.package-card .range { font-family: var(--sans); color: var(--gold-2); }

.site .package-card { background: var(--paper); color: var(--ink); border-color: var(--line); }

.invite {
  padding: 28px 26px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(233, 216, 219, .95), #fbf7f8);
  border: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--green-leaf), 0 16px 28px rgba(49, 14, 20, .06);
}

.invite h3 { font-family: var(--display); letter-spacing: .08em; }

.who { text-align: right; }

.who span, .who strong { display: block; }

.desk-top .who {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  text-align: right;
}

.desk-top .who strong { display: inline; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }

.desk-top .who .desk-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-3);
  border: 1px solid rgba(184, 137, 58, .4);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--maroon-deep);
  white-space: nowrap;
}

.desk-chip-wallet {
  background: linear-gradient(180deg, #f1e6e8, #c6a15a);
  font-weight: 600;
}

.desk-body .filters { gap: 8px; margin: 0 0 12px; align-items: flex-end; }

.desk-body .filters a { display: inline-flex; align-items: center; min-height: 36px; }

.desk-body .payout-form form > .btn { margin-top: 12px; }

.desk-body .filters input,
.desk-body .filters select,
.desk-body .filters button { width: auto; height: 36px; }

.desk-body .filters input:not([type="date"]) { min-width: 180px; }

.desk-body .inline-actions input,
.desk-body .inline-actions select { width: auto; min-width: 160px; }

.desk-body .income-actions input[type="date"] { min-width: 148px; }

.payout-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.payout-layout > .panel { margin-top: 0; }

.payout-layout > .payout-form,
.payout-side { max-width: 440px; }

.payout-side { display: grid; gap: 12px; align-content: start; }

.payout-side .stat { margin: 0; }

.payout-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.payout-banner div {
  background: var(--gold-3);
  border: 1px solid rgba(184, 137, 58, .35);
  border-radius: 8px;
  padding: 8px 10px;
}

.payout-banner span {
  display: block;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #7a685c;
}

.payout-banner strong {
  font-family: var(--sans);
  font-size: 1.25rem;
  color: var(--maroon-deep);
}

.payout-act {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.payout-act input { width: 140px; flex: 1 1 120px; max-width: 180px; }

.topup-actions { min-width: 220px; }

.topup-actions form + form { margin-top: 6px; }

.acct { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }

.acct strong { font-size: 13px; }

.payout-account {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
}

.payout-account h3 { margin: 0 0 8px; font-size: 14px; }

.amt strong { display: block; font-variant-numeric: tabular-nums; }

.dir-credit { color: #4f1720; font-weight: 600; text-transform: capitalize; }

.dir-debit { color: #7a2430; font-weight: 600; text-transform: capitalize; }

.stat, .metric-grid > div, .panel, .sheet, .invite, .package-card {
  background: var(--paper);
}

.stat span, .metric-grid span, .who span { color: #6e5d52; font-size: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }

.filters a.is-on { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.filters a, .filters button {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.filters .is-on { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.act-desk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.act-card {
  border: 1px solid rgba(184, 137, 58, .28);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.act-card h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--maroon-deep);
}

.act-card-wide { grid-column: 1 / -1; }

.act-card .hint, .act-list .hint { font-size: 12px; margin: 0 0 6px; }

.act-buttons { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.act-menu { display: inline-block; max-width: 100%; }

.act-menu summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(184, 137, 58, .5);
  background: #fff;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 600;
}

.act-menu summary::-webkit-details-marker { display: none; }

.act-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 240px;
  max-width: 440px;
}

.desk-body .act-list input,
.desk-body .act-list select,
.desk-body .act-card input,
.desk-body .act-card select {
  height: 32px;
  min-width: 0;
}

td.act-cell { width: 1%; vertical-align: top; white-space: normal; }

.act-dialog-sm { width: min(420px, 100%); }

.roi-toggle-bar { align-items: center; gap: 10px; }

.roi-toggle-bar .btn[disabled] { opacity: 1; cursor: default; }

.roi-cell { min-width: 132px; }

.free-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.28rem; border-radius: 999px; background: #6b1d2a; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }

.elig-cell { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }

.elig-check { margin: 0; }

.elig-check label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.elig-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #310e14;
}

.elig-check.is-saving { opacity: .6; }

.elig-note {
  grid-column: 1 / -1;
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: #310e14;
}

.elig-note.is-err { color: #6b1d2a; }

.roi-toggle { display: flex; gap: 4px; flex-wrap: wrap; }

.roi-toggle .btn[disabled] { opacity: 1; cursor: default; }

.roi-cell .muted { display: block; margin-top: 4px; font-size: 11px; }

.flag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(103, 31, 43, .18);
  background: #f5f1f2;
  color: #6e7d75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.flag-chip.is-on {
  background: #f2e8ea;
  border-color: rgba(103, 31, 43, .4);
  color: #310e14;
}

.flags-panel .elig-cell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.flags-panel .elig-check {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(103, 31, 43, .18);
  background: linear-gradient(165deg, #fff 0%, #faf4f5 100%);
}

.flags-panel .elig-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #310e14;
  cursor: pointer;
}

.flags-panel .elig-check input {
  width: 18px;
  height: 18px;
  accent-color: #310e14;
}

.act-facts .copy-id { margin-left: 6px; vertical-align: middle; }

.act-fact-id,
.act-fact-flags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.act-fact-flags .flag-chips { margin: 0; }

body.act-open { overflow: hidden; }

.act-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

.act-modal[hidden] { display: none; }

.act-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 22, 15, .48);
}

.act-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid rgba(184, 137, 58, .45);
  padding: 12px;
  box-shadow: 0 18px 48px rgba(36, 22, 15, .22);
}

.act-modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  padding-bottom: 8px;
}

.act-modal-bar h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--maroon-deep);
}

.act-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 28px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon);
}

.act-dialog .act-desk { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.act-dialog.act-book {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: hidden;
}

.act-book .act-modal-bar {
  margin: 0;
  padding: 14px 18px;
  background: #310e14;
  border-bottom: 0;
}

.act-book .act-modal-bar h3 {
  color: #f8f1de;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.act-book .act-close {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border-color: rgba(248, 241, 222, .45);
  background: transparent;
  color: #f8f1de;
}

.act-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 8px 16px;
  background: #faf4f5;
  border-bottom: 1px solid rgba(103, 31, 43, .18);
  font-size: 13px;
  color: #310e14;
}

.act-facts em {
  margin-right: 5px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #694148;
}

.act-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 8px 12px;
  background: #f1e6e8;
  border-bottom: 1px solid rgba(103, 31, 43, .28);
}

.act-page-tab {
  border: 1px solid rgba(103, 31, 43, .28);
  background: #fff;
  color: var(--maroon-deep);
  border-radius: 999px;
  min-height: 26px;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.act-page-tab.is-on {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.act-dialog.act-book .act-desk {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 18px;
}

.act-page[hidden] { display: none; }

.act-page > .act-card {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.act-page > .act-card > h3:first-child { display: none; }

.act-page h3 {
  margin: 16px 0 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon-deep);
}

.act-page form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
}

.act-book .act-page label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #694148;
}

.act-book .act-page label input,
.act-book .act-page label select,
.act-book .act-page .sponsor-field input {
  width: 100%;
  height: 42px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.act-page form > .hint,
.act-page form > .check-line,
.act-page form > .act-buttons,
.act-page form > button,
.act-page form > .js-invest-gold,
.act-page form > .js-invest-silver,
.act-page form > .js-invest-amount-box,
.act-page form > .sponsor-field,
.act-page form > .sponsor-hit,
.act-page form > p,
.act-page form > label:has(+ .sponsor-field) {
  grid-column: 1 / -1;
}

.act-page .js-invest-gold:not([hidden]),
.act-page .js-invest-silver:not([hidden]) { display: grid; gap: 12px; }

.js-invest-gold[hidden],
.js-invest-silver[hidden],
.js-invest-amount-box[hidden],
#gold-box[hidden],
#silver-box[hidden],
#amount-box[hidden] { display: none !important; }

#gold-rate:empty,
.js-gold-rate:empty,
#gold-total:empty,
.js-gold-total:empty,
#id-value:empty,
.js-id-value:empty,
#silver-amount:empty,
.js-silver-amount:empty,
#silver-coin:empty,
.js-silver-coin:empty { display: none; margin: 0; }

.act-book .act-page .check-line {
  flex-direction: row;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.act-book .act-page .check-line input {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
}

.act-page .act-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.act-page form > button.btn,
.act-page .act-buttons .btn { justify-self: start; min-height: 40px; padding: 0 16px; }

.act-page .hint { margin: 0; }

.act-page .table-wrap { margin-top: 8px; }

.level-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(103, 31, 43, .22);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.level-card:hover { border-color: #671f2b; background: #faf4f5; }

.level-card-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.level-card-copy strong,
.level-card-copy span {
  display: block;
  overflow: hidden;
  white-space: normal;
}

.level-card-copy strong { font-size: 14px; color: #310e14; }

.level-card-copy span { font-size: 14px; color: #3a2e28; }

.desk-body .list-find {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  margin: 0 0 12px;
}

.desk-body .list-find label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #694148;
}

.desk-body .list-find .find-search { flex: 1 1 260px; }

.desk-body .list-find input:not([type="checkbox"]):not([type="hidden"]),
.desk-body .list-find select {
  height: 38px;
  min-height: 38px;
  width: 100%;
}

.desk-body .list-find .check-line {
  flex-direction: row;
  align-items: center;
  min-height: 38px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  color: var(--ink);
}

.level-wise {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.level-block {
  background: #fffdf8;
  border: 1px solid rgba(184, 137, 58, .35);
  border-radius: 14px;
  padding: 14px 14px 8px;
}

.level-block h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon-deep);
}

.level-block .table-wrap { margin-top: 0; }

.team-business-head .hint { margin: 0 0 10px; }

.level-summary { margin: 0 0 14px; }

.level-summary .biz,
.level-block .biz { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

body.desk-member {
  font-size: 16px;
  line-height: 1.5;
  background: #efe4d4;
}

body.desk-member .desk { background: #efe4d4; }

.desk-member .desk-rail,
.desk-member .desk-top {
  background: #fffdf8;
}

.desk-member .desk-rail {
  gap: 16px;
  padding: 18px 12px 14px;
}

.desk-member .desk-rail .brand strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
}

.desk-member .desk-rail .brand small { font-size: 11px; }

.desk-member .desk-rail nav { gap: 4px; }

.desk-member .desk-rail nav a,
.desk-member .desk-foot a {
  font-size: 15px;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 10px;
}

.desk-member .desk-rail nav a.is-on {
  font-weight: 600;
  box-shadow: inset 3px 0 0 #e7d3a3;
}

.desk-member .desk-close,
.desk-member .desk-nav-hide { font-size: 13px; letter-spacing: .08em; }

.desk-member .desk-rail nav .desk-nav-back {
  font-size: 15px;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 10px;
}

.desk-member .desk-top {
  min-height: 60px;
  padding: 10px 20px;
}

.desk-member .desk-top h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.desk-member .desk-top .who strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
}

.desk-member .desk-top .who .desk-chip {
  font-size: 14px;
  line-height: 1.3;
}

.desk-member .desk-chip em { font-size: 12px; }

.desk-member .desk-content {
  font-size: 16px;
  line-height: 1.5;
  padding: 20px 22px 36px;
}

.desk-member .overview-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.desk-member .identity-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 20px 18px 24px;
  background: linear-gradient(165deg, #fbf7f8 0%, #e9d8db 100%);
  border: 1px solid rgba(103, 31, 43, .35);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(48, 18, 12, .08);
}

.desk-member .identity-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--maroon), var(--gold));
}

.desk-member .identity-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desk-member .identity-photo {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid #c9a15a;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(48, 18, 12, .12);
}

.desk-member .identity-intro { min-width: 0; }

.desk-member .identity-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--maroon-deep);
  overflow-wrap: anywhere;
}

.desk-member .identity-id {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #5c4a40;
}

.desk-member .identity-id span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a685c;
}

.desk-member .identity-id strong {
  color: var(--maroon-deep);
  font-weight: 700;
  letter-spacing: .03em;
}

.desk-member .identity-status { margin: 0; }

.desk-member .pill-active { background: #f2e8ea; }

.desk-member .pill-pending { background: #fff6e4; }

.desk-member .pill-blocked,
.desk-member .pill-rejected { background: #fde8e6; }

.desk-member .pill-inactive { background: #f3eee8; }

.desk-member .pill-approved { background: #f2e8ea; }

.desk-member .identity-facts {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(184, 137, 58, .35);
}

.desk-member .identity-facts div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.desk-member .identity-facts dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a685c;
}

.desk-member .identity-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.desk-member .identity-sponsor {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 137, 58, .28);
  font-size: 16px;
  line-height: 1.45;
  color: #3d2b22;
}

.desk-member .identity-sponsor strong {
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--maroon-deep);
}

.desk-member .money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.desk-member .stat,
.desk-member .panel {
  background: #fffdf8;
  border: 1px solid rgba(103, 31, 43, .12);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(48, 18, 12, .06);
}

.desk-member .money-grid .stat {
  border-left: 4px solid var(--maroon);
}

.desk-member .money-grid .stat:nth-child(even) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, #fbf7f8 0%, #f1e6e8 100%);
}

.desk-member .stat span,
.desk-member .payout-banner span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #7a685c;
}

.desk-member .payout-layout { gap: 16px; }

.desk-member .payout-layout > .panel { margin-top: 0; }

.desk-member .panel > h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.desk-member .panel p {
  font-size: 16px;
  line-height: 1.5;
}

.desk-member .panel > .stat-grid {
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 16px;
}

.desk-member .panel .stat-grid .stat {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  gap: 16px;
  border-left: 4px solid var(--maroon);
}

.desk-member .payout-banner { gap: 12px; margin-bottom: 14px; }

.desk-member .payout-banner div {
  background: #fff;
  border: 1px solid rgba(184, 137, 58, .32);
  border-radius: 12px;
  padding: 12px 14px;
}

.desk-member .payout-side .stat { border-left: 4px solid var(--maroon); }

.desk-member label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--maroon-deep);
}

.desk-member .hint {
  font-size: 15px;
  line-height: 1.45;
}

.desk-member .btn { font-size: 15px; border-radius: 10px; }

.desk-member input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.desk-member select {
  height: 42px;
  font-size: 16px;
  border-radius: 10px;
}

.desk-member textarea { font-size: 16px; border-radius: 10px; }

.desk-member table.data {
  font-size: 15px;
  line-height: 1.45;
}

.desk-member table.data th {
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 12px;
}

.desk-member table.data td { padding: 10px 12px; }

.dash-board { display: grid; gap: 16px; }

.dash-hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #fffdf8;
  border: 1px solid rgba(184, 137, 58, .4);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(48, 18, 12, .06);
}

.dash-hello h2 {
  margin: 2px 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--maroon-deep);
}

.dash-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #694148;
}

.dash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0;
  font-size: 15px;
  color: #5c4a40;
}

.dash-meta strong { color: var(--maroon-deep); }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.business-page .business-cards { margin: 0 0 22px; }

.business-page h3 { margin: 8px 0 4px; font-size: 18px; }

.business-page .dash-card em {
  font-style: normal;
  font-size: 13px;
  color: #5c4a40;
}

.dash-cards-tight { margin-bottom: 16px; grid-template-columns: repeat(2, minmax(220px, 320px)); }

.dash-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 124px;
  margin: 0;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  background: #fffdf8;
  border: 1px solid rgba(103, 31, 43, .12);
  border-left: 4px solid var(--maroon);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(48, 18, 12, .06);
}

.dash-card:nth-child(even) { border-left-color: var(--gold); }

.dash-card:hover { border-color: rgba(184, 137, 58, .7); }

.dash-card span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7a685c;
}

.dash-card strong {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--maroon-deep);
}

.dash-card em {
  font-style: normal;
  font-size: 14px;
  color: #6e5d52;
}

.referral-board { display: grid; gap: 16px; max-width: 820px; }

.referral-card {
  padding: 20px 20px 18px;
  background: #fffdf8;
  border: 1px solid rgba(184, 137, 58, .4);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(48, 18, 12, .06);
}

.referral-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  letter-spacing: 0;
  color: var(--maroon-deep);
}

.referral-id {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0;
  font-size: 15px;
  color: #6e5d52;
}

.referral-id strong {
  font-size: 28px;
  letter-spacing: .04em;
  color: var(--maroon-deep);
}

.referral-copy { display: flex; gap: 8px; align-items: center; }

.referral-copy input { flex: 1; }

.referral-note { margin: 8px 0 0; color: #67232e; font-weight: 700; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.share-wa { background: #852434; }

.share-fb { background: #3b5998; }

.share-tg { background: #2aabee; }

.share-x { background: #1c1c1c; }

.share-mail { background: var(--maroon); }

.bank-facts { display: grid; gap: 10px; margin: 0; }

.bank-facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px; }

.bank-facts dt { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7a685c; }

.bank-facts dd { margin: 0; font-weight: 700; color: var(--maroon-deep); overflow-wrap: anywhere; }

.chat-desk { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }

.chat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.chat-list a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: inherit; }

.chat-list a.is-on, .chat-list a:hover { background: rgba(184, 137, 58, .16); }

.chat-list span { font-size: 13px; color: #6e5d52; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-list em { font-style: normal; color: var(--maroon); font-weight: 700; }

.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; margin: 8px 0 14px; padding-right: 4px; }

.chat-bubble { max-width: 82%; padding: 10px 12px; border-radius: 14px; }

.chat-bubble p { margin: 0 0 4px; }

.chat-bubble time { font-size: 12px; opacity: .8; }

.chat-bubble.mine { margin-left: auto; background: var(--maroon); color: #fffdf8; }

.chat-bubble.theirs { background: #fff; border: 1px solid rgba(184, 137, 58, .4); }

.chat-form textarea { width: 100%; }

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

@media (max-width: 640px) {
    .dash-hello { flex-direction: column; align-items: flex-start; }
    .dash-cards,
    .dash-cards-tight { grid-template-columns: minmax(0, 1fr); }
    .referral-copy { flex-direction: column; align-items: stretch; }
    .chat-desk { grid-template-columns: minmax(0, 1fr); }
    .bank-facts div { grid-template-columns: minmax(0, 1fr); }
    .dash-hello h2 { font-size: 24px; }
}

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

@media (max-width: 640px) {
    .desk-member .money-grid { grid-template-columns: minmax(0, 1fr); }
    .desk-member .identity-head { align-items: flex-start; }
    .desk-member .identity-photo { width: 84px; height: 84px; }
    .desk-member .identity-name { font-size: 24px; }
    .desk-member .identity-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .desk-member .panel .stat-grid .stat { align-items: flex-start; }
}

@media (max-width: 1100px) {
    .piece-grid, .package-grid, .stat-grid, .metric-grid { grid-template-columns: 1fr 1fr; }
    .payout-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .hero-grid, .sheet-head, .form-row, .add-member-grid, .metal-band, .showroom-grid, .piece-grid, .package-grid, .stat-grid, .metric-grid, .earn-grid, .about-band { display: grid; grid-template-columns: 1fr; }
    .level-edit { grid-template-columns: 1fr 1fr; }
    .who { display: none; }
    .desk-top .who { display: flex; flex: 1 1 100%; justify-content: flex-start; }
    .payout-banner { grid-template-columns: 1fr 1fr; }
    .desk-top .who strong { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
    .desk-member .desk-top { padding: 8px 12px; align-items: flex-start; }
    .desk-member .desk-top h1 { font-size: 18px; }
    .desk-member .desk-top .who {
      justify-content: flex-start;
      gap: 6px;
    }
    .desk-member .desk-top .who strong,
    .desk-member .desk-top .who .desk-chip {
      max-width: 100%;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
    }
    .desk-member .dash-card { min-height: 0; }
    .desk-member .share-btn { flex: 1 1 calc(50% - 8px); }
    .count { flex-wrap: wrap; }
}

.desk-body .stat,
.desk-body .panel {
  box-shadow: 0 8px 22px rgba(48, 18, 12, .06);
}

.bank-account-no {
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  white-space: nowrap;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .client-dash .dash-card,
    .client-dash .client-wallet { transition: none; }
}

.client-dash { gap: 20px; }

.client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .75fr);
  align-items: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  color: #fffdf8;
  background:
    radial-gradient(circle at 92% 0%, rgba(231, 211, 163, .42), transparent 36%),
    linear-gradient(128deg, #310e14 0%, #671f2b 58%, #46131b 100%);
  box-shadow: 0 18px 40px rgba(49, 14, 20, .22);
}

.client-hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(231, 211, 163, .4);
  border-radius: 14px;
  pointer-events: none;
}

.client-hero-copy {
  position: relative;
  z-index: 1;
  padding: 32px 28px 26px 30px;
}

.client-hero .dash-kicker { color: #e7d3a3; }

.client-hero h2 {
  margin: 6px 0 12px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  color: #fffdf8;
}

.client-hero .dash-meta { color: rgba(255, 253, 248, .86); }

.client-hero .dash-meta strong { color: #fff; }

.client-hero .pill {
  background: rgba(255, 253, 248, .12);
  color: #fffdf8;
  border-color: rgba(231, 211, 163, .65);
}

.client-wallet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin: 22px 22px 22px 0;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: var(--maroon-deep);
  background: linear-gradient(180deg, #fbf7f8 0%, #e9d8db 100%);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(24, 6, 8, .18);
}

.client-wallet span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #694148;
}

.client-wallet strong {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.client-wallet em {
  font-style: normal;
  font-size: 14px;
  color: #6e5d52;
}

.client-wallet:hover { background: #fff; }

.client-dash .client-referral {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(103, 31, 43, .35);
  background:
    radial-gradient(circle at 0 0, rgba(138, 53, 67, .28), transparent 32%),
    linear-gradient(180deg, #fbf7f8 0%, #e9d8db 100%);
  box-shadow: 0 12px 28px rgba(48, 18, 12, .06);
}

.client-dash .referral-id { margin: 8px 0 12px; }

.client-dash .referral-id strong {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--maroon-deep);
  color: #f8f1de;
  font-size: 20px;
  letter-spacing: .08em;
}

.client-dash .referral-copy input {
  height: 44px;
  border-radius: 12px;
  background: #fff;
}

.client-dash .share-btn {
  min-height: 36px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(36, 22, 15, .12);
}

.client-group h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #694148;
}

.client-group-account .dash-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.client-group-account .dash-card:nth-child(-n+3) { grid-column: span 2; }

.client-group-account .dash-card:nth-child(n+4) { grid-column: span 3; }

.client-group-team .dash-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.client-dash .dash-card {
  min-height: 128px;
  padding: 16px 16px 14px 18px;
  border: 1px solid rgba(103, 31, 43, .24);
  border-left: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbf7f8 0%, #f1e6e8 100%);
  box-shadow: 0 10px 24px rgba(48, 18, 12, .05);
  transition: transform .16s ease, box-shadow .16s ease;
}

.client-dash .dash-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green-leaf), var(--maroon-deep));
}

.client-dash .dash-card { position: relative; }

.client-dash .dash-card:nth-child(even)::before { background: linear-gradient(180deg, #e7d7ae, #c6a15a); }

.client-dash .dash-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 137, 58, .55);
  box-shadow: 0 16px 30px rgba(48, 18, 12, .1);
}

@media (max-width: 900px) {
    .client-hero { grid-template-columns: minmax(0, 1fr); }
    .client-hero h2 { font-size: 32px; }
    .client-wallet { margin: 0 16px 16px; }
    .client-group-account .dash-cards { grid-template-columns: minmax(0, 1fr); }
    .client-group-account .dash-card,
    .client-group-account .dash-card:nth-child(-n+3),
    .client-group-account .dash-card:nth-child(n+4) { grid-column: auto; }
    .client-group-team .dash-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .client-hero-copy { padding: 24px 18px 8px; }
    .client-hero h2 { font-size: 28px; }
    .client-wallet strong { font-size: 28px; }
}

.inv-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 2px solid #671f2b;
}

.inv-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  background: #671f2b;
  color: #f8f1de;
  text-align: center;
}

.inv-logo b { font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1; }

.inv-logo small { display: block; margin-top: 2px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.inv-head h2 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #671f2b;
}

.inv-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }

.inv-branches p { margin: 0; font-size: 10px; line-height: 1.3; }

.inv-branches b { color: #671f2b; }

.inv-gst { margin: 4px 0 0; font-size: 10px; font-weight: 700; color: #1c1c1c; }

.inv-top {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 8px;
  margin-top: 6px;
  padding-bottom: 8px;
}

.inv-party p { margin: 0 0 2px; }

.inv-to { font-size: 13px; }

.inv-to b { margin-right: 8px; }

.inv-pan { margin-top: 8px !important; font-weight: 700; }

.inv-meta { width: 100%; border-collapse: collapse; }

.inv-meta th {
  padding: 0 0 4px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #671f2b;
  background: transparent;
}

.inv-meta td { padding: 1px 0; font-size: 11px; }

.inv-meta td:first-child { width: 68px; font-weight: 600; }

.inv-meta td:last-child { text-align: left; font-weight: 700; }

.inv-meta tr.inv-rate td { color: #671f2b; }

.gold-bill-table td.inv-desc,
.gold-bill-table td:nth-child(2) { text-align: left; white-space: normal; }

.gold-bill-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

.inv-desc b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0; color: #1c1c1c; }

.inv-desc em { font-style: normal; font-size: 12px; color: #1c1c1c; }

.inv-desc span { display: block; margin-top: 2px; color: #1c1c1c; font-size: 11px; }

.inv-totals { width: 280px; margin: 8px 0 0 auto; border-collapse: collapse; font-size: 12px; }

.inv-totals td { border: 0; border-bottom: 1px solid rgba(103, 31, 43, .2); padding: 3px 0; background: transparent; }

.inv-totals td:first-child { text-align: right; padding-right: 16px; font-weight: 600; color: #1c1c1c; }

.inv-totals td:last-child { width: 110px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: #1c1c1c; }

.inv-words { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: #1c1c1c; }

.inv-netbar {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  margin-top: 8px;
  border-top: 1px solid #671f2b;
  border-bottom: 1px solid #671f2b;
}

.inv-netbar span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #671f2b;
  color: #fff8e8;
  font-size: 14px;
  font-weight: 700;
}

.inv-netbar strong {
  display: inline-flex;
  align-items: center;
  min-width: 120px;
  justify-content: flex-end;
  padding: 4px 6px 4px 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: #1c1c1c;
}

.inv-check { margin: 8px 0 0; font-size: 11px; color: #1c1c1c; }

.inv-check[lang="ta"] { font-family: var(--tamil), var(--sans); font-size: 12px; }

.inv-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: end;
  margin: 8px 0 0;
}

.inv-thanks { text-align: center; }

.inv-thanks p { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: #671f2b; }

@media (max-width: 760px) {
    .row-acts, .row-acts-line, .payout-act { flex-wrap: wrap; }
    .act-dialog { width: min(100% - 16px, 520px); }
    .inv-top, .inv-branches, .inv-foot { display: block; }
    .inv-meta { margin-top: 8px; }
    .client-hero, .client-group-account .dash-cards, .client-group-team .dash-cards { grid-template-columns: minmax(0, 1fr); }
    .act-pages { flex-wrap: nowrap; overflow-x: auto; }
    .act-page-tab { flex: 0 0 auto; }
    .act-page form { grid-template-columns: 1fr; }
}

.filters .filter-date,
.filters .filter-search {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  min-width: 148px;
  width: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6e5d52;
}

.filters .filter-search { flex: 1 1 280px; min-width: 240px; }

.filters .filter-search input { text-transform: none; letter-spacing: 0; font-weight: 600; width: 100%; }

.desk-member .filters .filter-date { margin: 0; font-size: 11px; }

.filters .filter-date input[type="date"] {
  width: auto;
  min-width: 148px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.act-book .act-page .filters .filter-date,
.act-modal .filters .filter-date {
  display: flex;
  flex-direction: column;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6e5d52;
}

.act-book .act-page .filters .filter-date input,
.act-modal .filters .filter-date input[type="date"] {
  width: auto;
  min-width: 148px;
  height: 36px;
}

.overview { display: flex; flex-direction: column; gap: 14px; }

.overview-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 161, 90, .35), transparent 42%),
    linear-gradient(135deg, #310e14 0%, #581822 58%, #671f2b 100%);
  color: #fbf7f8;
}

.overview-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e7d7ae;
}

.overview-hero h2 { margin: 0 0 6px; color: #fff; font-size: 28px; }

.overview-hero p { margin: 0; color: #e9d8db; }

.overview-hero strong { color: #fff; }

.overview-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.overview-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.overview-links a:hover { background: #fff; color: #310e14; }

.overview-stats, .overview-money {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.overview-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.overview-stat {
  display: block;
  text-decoration: none;
  color: inherit;
}

.overview-stat em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #671f2b;
}

.overview-stat:hover { border-color: #671f2b; }

.overview-stat.is-wait strong { color: #8a5a12; }

.overview-total {
  background: #310e14;
  border-color: #310e14;
}

.overview-total span,
.overview-total strong { color: #f8f1de; }

.overview-run { padding: 18px 18px 14px; border-radius: 16px; }

.overview-run-copy h2 { margin-bottom: 8px; }

.overview-pause {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8f1de;
  color: #310e14;
}

.overview-posted { font-weight: 700; color: #4f1720; }

.overview-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 12px;
}

.overview-date-run {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.overview-date-run label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #694148;
}

.overview-note { margin-top: 12px; }

@media (max-width: 1100px) {
    .overview-stats, .overview-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-hero { flex-direction: column; align-items: flex-start; }
    .overview-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .overview-stats, .overview-money { grid-template-columns: 1fr; }
    .overview-hero { padding: 18px 16px; }
    .overview-hero h2 { font-size: 24px; }
}

.topup-pop-who { margin: 0 0 6px; font-weight: 700; }

.topup-pop-acts { display: grid; gap: 10px; margin-top: 12px; }

.topup-pop-acts form { display: grid; gap: 8px; margin: 0; }

.topup-pop-acts label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #694148;
}

.topup-pop-acts input { width: 100%; }

.topup-pop-acts .btn { justify-self: start; }

.desk-member .client-plan-panel {
  margin-bottom: 14px;
}

.desk-member .client-plan-panel > h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.desk-member .client-plan-calc #income-calc.section {
  padding: 0;
  margin: 0;
  background: transparent;
}

.desk-member .client-plan-calc #income-calc .page-wrap {
  padding: 0;
  max-width: none;
}

.desk-member .client-plan-calc #income-calc .section-head {
  margin-bottom: 10px;
}

.desk-member .client-plan-calc #income-calc .section-head h2 {
  display: none;
}

.topup-proof-help {
  margin: 6px 0 12px;
  color: #6e5e75;
  font-size: 13px;
  line-height: 1.4;
}

.topup-pending-card {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(49, 14, 20, .1);
  border-radius: 14px;
  background: #fbf8f9;
}

.topup-pending-card form { margin-top: 10px; }

.topup-proof-block {
  margin: 12px 0;
  padding: 10px;
  border-radius: 12px;
  background: #f8f4f5;
  border: 1px solid rgba(49, 14, 20, .08);
}

.topup-proof-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #2d0c11;
}

.topup-proof-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topup-proof-thumb {
  display: flex;
  flex-direction: column;
  width: 110px;
  text-decoration: none;
  color: #2d0c11;
  border: 1px solid rgba(49, 14, 20, .12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 14px rgba(49, 14, 20, .06);
}

.topup-proof-thumb img {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: cover;
  background: #f4eeef;
}

.topup-proof-thumb span {
  display: block;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topup-proof-count {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fcedf0;
  color: #711424;
  font-size: 11px;
  font-weight: 700;
}

.topup-proof-empty { margin: 0; }

.topup-proof-picker {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.topup-proof-picked {
  margin: 0;
  color: #711424;
  font-size: 13px;
  font-weight: 600;
}

.topup-proof-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topup-proof-preview-item {
  margin: 0;
  width: 96px;
  border: 1px solid rgba(49, 14, 20, .12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.topup-proof-preview-item img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #f4eeef;
}

.topup-proof-preview-item figcaption {
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6e5e75;
}

.week-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.week-chips-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2d0c11;
}

.week-chip.is-on,
.week-chips .btn.is-on {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.wallet-zero-form {
  margin: 10px 0 0;
}

/* Clear filtered / sorted list totals (always visible in app shell) */
.list-total-bar {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(45, 12, 17, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.95), rgba(245, 233, 235, 0.95)),
    #fff;
  box-shadow: 0 8px 20px rgba(45, 12, 17, 0.06);
}

.list-total-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.list-total-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2d0c11;
}

.list-total-amount {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #7a1f2b;
  line-height: 1.1;
}

.list-total-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #51363b;
}

.list-total-meta strong {
  color: #2d0c11;
  font-variant-numeric: tabular-nums;
}

.list-total-note,
.list-total-note.filter-range-note {
  margin: 0;
  font-size: 12px;
  color: #624e51;
}
