:root {
  --ink: #172242;
  --muted: #94a1b3;
  --line: #dfe6ee;
  --panel: #f5f6f8;
  --soft-blue: #eaf2ff;
  --blue: #1769ff;
  --navy: #101b3b;
  --green: #39d0a3;
  --sky: #62c2f0;
  --violet: #6292f4;
  --chat: #27c990;
  --shadow: 0 12px 28px rgba(21, 35, 60, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin: 0;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 27px 24px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 67% 31%, rgba(255, 255, 255, 0) 0 16%, rgba(238, 240, 243, 0.52) 17%, rgba(255, 255, 255, 0) 18% 22%, rgba(238, 240, 243, 0.42) 23%, rgba(255, 255, 255, 0) 24%),
    repeating-linear-gradient(76deg, rgba(255, 255, 255, 0.78) 0 30px, rgba(235, 237, 240, 0.62) 31px 46px, rgba(255, 255, 255, 0.9) 47px 86px),
    #f6f7f8;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.76) 52%, rgba(255, 255, 255, 0.36));
}

.login-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 121px;
  color: #111d3d;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.signin-card {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  min-height: 398px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 41px 40px 40px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 27, 59, 0.08);
}

.signin-card h1 {
  color: #31458b;
  font-size: 31px;
  line-height: 1.08;
  font-weight: 850;
}

label {
  display: grid;
  gap: 10px;
  color: #172242;
  font-weight: 500;
  font-size: 12px;
}

input,
select {
  width: 100%;
  height: 42px;
  padding: 0 20px;
  color: var(--ink);
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #fff;
  outline: none;
}

.signin-card input {
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.login-page .signin-card label {
  color: #172242;
  font-size: 12px;
}

.login-page .signin-card input {
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.login-page .signin-card input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #172242;
}

input::placeholder {
  color: #8e8e8e;
}

input:focus,
select:focus {
  border-color: #7fb1ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.login-page .password-field input {
  padding-right: 52px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #1f1f1f;
}

.password-field svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dark-btn,
.soft-btn,
.white-btn,
.clear-btn {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
}

.dark-btn {
  color: #fff;
  background: var(--navy);
}

.soft-btn {
  color: var(--blue);
  background: #e9f1ff;
  position: relative;
}

.white-btn {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.clear-btn {
  color: #ff463f;
  background: #fff0f0;
  border-color: #ffb5b5;
}

.login-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border-radius: 7px;
  color: #fff;
  background: #111b3c;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(16, 27, 59, 0.08);
}

.login-page .login-btn {
  min-height: 50px;
  border-radius: 7px;
  background: #111b3c;
  font-size: 16px;
}

.forgot-password {
  justify-self: end;
  min-height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #70a4ff;
  font-size: 12px;
  font-weight: 500;
}

.signup-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 31px;
  color: #777;
  font-size: 12px;
}

.signup-row button,
.cancel-link,
.resend button {
  border: 0;
  color: var(--ink);
  font-weight: 700;
}

.signup-row button {
  min-width: 95px;
  min-height: 38px;
  padding: 0 19px;
  border: 1px solid #cfd3db;
  border-radius: 4px;
  background: #fff;
  color: #162140;
  font-size: 12px;
}

.cancel-link,
.resend button {
  background: transparent;
}

.error,
.toast {
  padding: 12px 16px;
  border-radius: 10px;
  color: #b32424;
  background: #fff0f0;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 48px));
  text-align: center;
  color: #0b7c50;
  background: #e8fff5;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.dim {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(20, 24, 32, 0.34);
  backdrop-filter: blur(0.4px);
}

.verify-modal {
  position: fixed;
  z-index: 6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, calc(100vw - 32px));
  min-height: 371px;
  padding: 34px 50px 48px;
  text-align: center;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 22px 58px rgba(21, 35, 60, 0.16);
}

.idle-modal {
  position: fixed;
  z-index: 7;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  padding: 34px 42px 38px;
  text-align: center;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 22px 58px rgba(21, 35, 60, 0.18);
}

.idle-modal h2 {
  margin: 0 0 14px;
  color: #141f3c;
  font-size: 24px;
  line-height: 1.2;
}

.idle-modal p {
  margin: 0 0 26px;
  color: #5f6b7f;
  font-size: 14px;
  line-height: 1.5;
}

.idle-modal .dark-btn {
  width: 180px;
  height: 42px;
}

.verify-modal time {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #9ba6b4;
  font-size: 12px;
  line-height: 1;
}

.verify-modal h2 {
  color: #141f3c;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
}

.verify-modal p {
  max-width: 400px;
  margin: 28px auto 4px;
  color: #172242;
  font-size: 15px;
  line-height: 1.45;
}

.verify-modal strong {
  display: block;
  margin-bottom: 24px;
  color: #172242;
  font-size: 14px;
  font-weight: 800;
}

.backend-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: -8px 0 18px;
  padding: 0 14px;
  color: #607086;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  background: #f7faff;
  font-size: 13px;
}

.backend-code b {
  color: #176bff;
  font-size: 16px;
  letter-spacing: 0;
}

.code-input {
  width: 200px;
  height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #cfd4da;
  border-radius: 0;
  color: #172242;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  background: #fff;
  box-shadow: none;
}

.code-input:focus {
  border-color: #aeb8c6;
  box-shadow: none;
}

.code-input::placeholder {
  color: #d6d8dc;
}

.resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  color: #172242;
  font-size: 13px;
}

.resend button {
  height: 32px;
  padding: 0 18px;
  color: #4f83ff;
  border: 1px solid #c4cede;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
}

.cancel-link {
  display: block;
  margin: 45px auto 0;
  color: #abc0cf;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.15s ease, transform 0.15s ease;
}

.cancel-link.ready {
  color: #1769ff;
}

.cancel-link.ready:hover {
  transform: translateY(-1px);
}

.portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: 206px 1fr;
  background: var(--panel);
}

.topbar {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 230px 500px 1fr;
  align-items: start;
  height: 206px;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
}

.brand-text {
  margin: 50px 0 0 28px;
  border: 0;
  background: transparent;
  color: #0d1c3c;
  font-size: 29px;
  font-weight: 900;
  text-align: left;
}

.quick-actions {
  display: flex;
  gap: 14px;
  padding-top: 42px;
}

.action {
  width: 160px;
  height: 56px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
}

.deposit { background: var(--green); }
.send { background: var(--sky); }
.exchange { background: var(--violet); }

.top-tools {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 40px;
  border-left: 1px solid var(--line);
}

.top-tools button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 82px;
  border: 0;
  background: transparent;
  color: #8f98a7;
  font-size: 18px;
}

.top-tools .activity {
  width: 142px;
  min-width: 142px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
}

.top-tools .activity span {
  max-width: 66px;
  overflow: hidden;
  white-space: nowrap;
}

.top-tools i {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4f4b;
}

.side-menu {
  grid-row: 2;
  display: grid;
  align-content: start;
  background: #fff;
}

.side-menu button {
  height: 94px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 0;
  border-left: 7px solid transparent;
  background: #fff;
  color: #8f98a7;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 500;
}

.side-menu button.active {
  color: #17213f;
  background: #edf4ff;
  border-left-color: var(--blue);
  font-weight: 550;
}

.content {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  min-height: calc(100vh - 206px);
  padding: 96px 28px 70px;
}

.chat {
  position: fixed;
  right: 52px;
  bottom: 28px;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--chat);
  box-shadow: 0 8px 24px rgba(39, 201, 144, 0.34);
}

.chat::before {
  content: "";
  position: absolute;
  inset: 23px 21px 25px;
  border: 3px solid #fff;
  border-radius: 5px;
}

.chat::after {
  content: "";
  position: absolute;
  right: 23px;
  bottom: 21px;
  width: 10px;
  height: 10px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: skew(-18deg);
}

.ticket-dim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(18, 26, 43, 0.44);
}

.ticket-modal {
  position: fixed;
  z-index: 31;
  left: 50%;
  top: 50%;
  width: min(1180px, calc(100vw - 72px));
  height: min(680px, calc(100vh - 92px));
  display: grid;
  grid-template-rows: 74px 1fr 86px;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(16, 27, 59, 0.34);
}

.ticket-head,
.ticket-foot {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5ebf2;
}

.ticket-head {
  justify-content: space-between;
  padding: 0 32px;
}

.ticket-head h2 {
  font-size: 20px;
  font-weight: 800;
}

.ticket-head button {
  border: 0;
  background: transparent;
  color: #91a1b8;
  font-size: 34px;
  line-height: 1;
}

.ticket-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 306px 1fr;
}

.ticket-side {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 28px;
  border-right: 1px solid #e5ebf2;
}

.ticket-side label {
  gap: 8px;
  color: #5a6a83;
  font-weight: 800;
}

.ticket-side b {
  color: #2dbd8c;
}

.ticket-side input,
.ticket-side select {
  height: 48px;
  border-radius: 8px;
  color: #1a2543;
  font-weight: 500;
}

.ticket-side p {
  align-self: end;
  margin-top: 190px;
  color: #9aadc4;
  line-height: 1.45;
}

.ticket-compose {
  min-width: 0;
  display: grid;
  grid-template-rows: 50px 1fr 116px;
  background: #f7f9fc;
}

.ticket-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #e5ebf2;
  background: #fff;
}

.ticket-compose-head strong {
  color: #53637d;
}

.ticket-compose-head span,
.ticket-compose-head small {
  color: #9aadc4;
  font-weight: 600;
}

.ticket-message-list {
  position: relative;
  overflow: auto;
  padding: 28px;
}

.ticket-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: #9fb1c8;
  font-size: 17px;
}

.ticket-empty span {
  width: 42px;
  height: 34px;
  border: 3px solid #d2dce9;
  border-radius: 6px;
  position: relative;
}

.ticket-empty span::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -12px;
  width: 14px;
  height: 14px;
  border-left: 3px solid #d2dce9;
  border-bottom: 3px solid #d2dce9;
  transform: skew(-20deg);
}

.ticket-message-preview {
  max-width: 76%;
  margin: 0 0 14px auto;
  padding: 13px 16px;
  border-radius: 12px 12px 4px 12px;
  color: #23314f;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 36, 72, 0.07);
  line-height: 1.45;
}

.ticket-input-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 14px;
  padding: 18px 20px 28px;
  border-top: 1px solid #e5ebf2;
  background: #fff;
}

.ticket-input-row textarea {
  width: 100%;
  min-height: 58px;
  resize: none;
  border: 0;
  outline: none;
  color: #21304f;
  font: inherit;
  font-size: 18px;
}

.ticket-input-row textarea::placeholder {
  color: #9aadc4;
}

.ticket-tools {
  display: flex;
  gap: 10px;
  align-items: start;
}

.ticket-tools button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 9px;
  color: #6e819c;
  background: #edf2f8;
  font-size: 24px;
}

.ticket-tools .send-ticket-message {
  color: #fff;
  background: #73d9bd;
}

.ticket-input-row small {
  position: absolute;
  left: 20px;
  bottom: 12px;
  color: #263451;
  font-weight: 600;
}

.ticket-foot {
  justify-content: flex-end;
  gap: 14px;
  padding: 0 32px;
  border-top: 1px solid #e5ebf2;
  border-bottom: 0;
}

.ticket-cancel,
.ticket-create {
  height: 46px;
  border-radius: 10px;
  padding: 0 28px;
  font-weight: 800;
}

.ticket-cancel {
  color: #6e819c;
  border: 1px solid #d9e2ec;
  background: #fff;
}

.ticket-create {
  color: #fff;
  border: 0;
  background: #61d1ad;
}

.mini-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #c5d0df;
}

.mini-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-icon svg path,
.mini-icon svg circle,
.mini-icon svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon svg .blue {
  stroke: #1974ff;
}

.side-menu .mini-icon {
  width: 34px;
  height: 34px;
}

.side-menu .mini-icon svg path,
.side-menu .mini-icon svg circle,
.side-menu .mini-icon svg rect {
  stroke-width: 1.75;
}

.side-menu button.active .mini-icon {
  color: #1974ff;
}

.side-menu button.active .mini-icon svg path:not(.blue),
.side-menu button.active .mini-icon svg circle:not(.blue),
.side-menu button.active .mini-icon svg rect:not(.blue) {
  stroke: #1672ff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 520px) 90px minmax(190px, 1fr) 90px minmax(190px, 1fr);
  grid-template-rows: auto auto auto;
  gap: 54px 36px;
  align-items: start;
}

.summary h2,
.metric-label span,
.account-list h2,
.latest h2 {
  font-size: 26px;
  font-weight: 500;
}

.summary strong {
  display: block;
  margin-top: 4px;
  font-size: 44px;
}

.metric-label {
  padding-top: 38px;
}

.metric-label strong {
  display: block;
  font-size: 28px;
}

.wallet-art,
.pie-art {
  width: 96px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f52ff, #6b85ff);
  box-shadow: inset -18px 12px 0 rgba(255, 255, 255, 0.18);
}

.pie-art {
  border-radius: 50%;
  background: conic-gradient(#4c61f4 0 45%, #3b3f4c 45% 72%, #ffd83b 72% 100%);
}

.account-list {
  grid-column: 1;
  grid-row: 2 / 4;
}

.account-line {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #d8dde5;
}

.account-line strong,
.account-line span {
  display: block;
}

.account-line b {
  font-size: 18px;
}

.cards-title {
  margin-top: 56px;
}

.card-preview {
  width: 100%;
  height: 290px;
  margin-top: 24px;
  padding: 38px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(73deg, #fff 0 34px, #f5f5f5 35px 60px);
}

.chart-card {
  grid-column: 2 / 6;
  grid-row: 2;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
}

.chart-card svg {
  width: 100%;
  height: 310px;
}

.latest {
  grid-column: 2 / 6;
  grid-row: 3;
}

.latest h2 {
  margin-bottom: 40px;
}

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

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid #e5e9ef;
}

th {
  color: #a5abb8;
  font-weight: 750;
}

.accounts-page {
  position: relative;
  padding: 0 110px;
}

.accounts-page h1,
.center-page h1,
.savings-page h1,
.exchange-page h1,
.flow-page h1,
.profile-page h1,
.split-page h1 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
}

.currency-select {
  position: absolute;
  right: 110px;
  top: 0;
  width: 210px;
}

.left-actions {
  position: absolute;
  top: 135px;
  left: 0;
  display: grid;
  gap: 20px;
}

.left-actions .dark-btn {
  width: 210px;
}

.account-table {
  margin: 90px 0 0 260px;
  width: calc(100% - 260px);
  background: #fff;
}

.account-table td:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.copy,
.ghost-eye,
.more {
  border: 0;
  background: transparent;
  color: #9aabba;
  font-weight: 800;
}

.center-page {
  display: grid;
  justify-items: center;
  gap: 30px;
}

.card-shell {
  width: 1045px;
  min-height: 760px;
  padding: 28px 145px 60px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(73deg, #fff 0 36px, #f6f6f6 37px 66px);
  text-align: center;
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-bottom: 42px;
}

.tabs button {
  height: 54px;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 22px;
  font-weight: 750;
}

.tabs .on {
  color: var(--blue);
  border-bottom: 3px solid var(--blue);
}

.bank-card {
  width: 278px;
  height: 432px;
  display: grid;
  place-items: center;
  margin: 0 auto 36px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 12%, rgba(255,255,255,0.08) 0 80px, transparent 82px),
    #273140;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  transform: rotate(90deg);
}

.bank-card small {
  font-size: 32px;
}

.small-card {
  width: 260px;
  height: 160px;
  margin: 0;
  transform: rotate(-12deg);
}

.wide-btn {
  width: 100%;
  margin-top: 40px;
}

.link-card {
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  border: 1px solid #cbd7e8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
}

.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  gap: 28px;
  margin: -96px -28px -70px 0;
  min-height: calc(100vh - 206px);
}

.main-col {
  min-width: 0;
  padding: 96px 28px 70px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: -54px;
}

.button-row .soft-btn {
  margin-left: auto;
}

.soft-btn b {
  position: absolute;
  right: -12px;
  top: -14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
}

.tx-table {
  display: block;
  overflow-x: auto;
  margin-top: 62px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid #45d332;
  border-radius: 999px;
  color: #31c920;
}

.export-row {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
}

.export-row button {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #c4d1e4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.filters-panel {
  padding: 80px 56px 60px;
  background: #e9eef0;
}

.filters-panel h2 {
  margin-bottom: 28px;
  font-size: 26px;
  font-weight: 500;
}

.filters-panel label,
.filters-panel select {
  margin-bottom: 26px;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.filter-actions {
  display: flex;
  gap: 28px;
  margin-top: 28px;
}

.filter-actions button {
  flex: 1;
}

.flow-page {
  display: grid;
  grid-template-columns: minmax(330px, 420px) minmax(420px, 700px);
  justify-content: center;
  gap: 28px;
}

.method-col {
  padding-top: 110px;
}

.method-col h2 {
  margin: 0 0 14px 4px;
  font-size: 25px;
  font-weight: 500;
}

.method-card {
  min-height: 98px;
  display: grid;
  grid-template-columns: 58px 1fr 28px;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.method-card.selected {
  border-color: var(--green);
}

.method-card p {
  margin-top: 4px;
  font-size: 15px;
}

.method-card i,
.bonus-box i {
  width: 28px;
  height: 28px;
  border: 2px solid #dbe4ec;
  border-radius: 50%;
}

.method-card.selected i,
.bonus-box.selected i {
  border: 7px solid var(--green);
}

.method-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #d7faef;
}

.form-col h1 {
  margin-bottom: 18px;
}

.white-card {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
  padding: 44px 56px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-select > div {
  height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.account-select p,
.profile-item strong,
.profile-item span {
  display: block;
}

.account-select span {
  color: #8aa3b2;
}

.amount-label {
  font-size: 22px;
  color: var(--ink);
}

.amount-label span {
  float: right;
  color: #8aa3b2;
  font-size: 16px;
}

.amount-label input {
  border: 0;
  border-bottom: 1px solid #d9e1ea;
  border-radius: 0;
  padding-left: 0;
  font-size: 30px;
  color: #777;
}

.continue-btn {
  width: 100%;
  height: 70px;
  border: 0;
  border-radius: 10px;
  background: #cfdee6;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.add-recipient {
  height: 70px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #e5f0ff;
  font-weight: 700;
}

.exchange-page {
  position: relative;
}

.rate-badge {
  position: absolute;
  top: 56px;
  left: 245px;
  min-width: 300px;
  height: 60px;
  padding: 0 28px;
  display: grid;
  place-items: center;
  color: #172242;
  border: 2px solid #70a4ff;
  border-radius: 8px;
  background: #dfeaff;
  font-size: 21px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32);
}

.exchange-form {
  width: 700px;
  margin: 0 auto;
}

.mini-soft {
  width: 104px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: #ecf4ff;
}

#exchange-to-amount[readonly] {
  background: transparent;
  cursor: default;
}

.savings-page {
  padding: 0 20px;
}

.savings-page h1 {
  margin-bottom: 28px;
}

.savings-page h2 {
  margin: 28px 0 26px;
  color: #314b92;
  font-size: 27px;
}

.plan-labels {
  display: grid;
  grid-template-columns: 1fr 360px;
  margin-bottom: 18px;
  color: #8d98a8;
  font-size: 18px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.plan-card {
  min-height: 260px;
  display: grid;
  grid-template-columns: 42px 1fr 120px;
  align-items: start;
  gap: 14px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
}

.plan-card button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
}

.plan-card hr {
  grid-column: 1 / 4;
  width: 100%;
  border: 0;
  border-top: 1px solid #e6ebf0;
}

.plan-card div {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: 34px 1fr;
  color: #98a3b4;
}

.plan-card p b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.segmented {
  width: 490px;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.segmented.small {
  margin-top: 0;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}

.segmented .on {
  color: var(--blue);
  background: #dceaff;
}

.empty-note {
  margin-top: 80px;
  color: #b2c5d0;
  text-align: center;
  font-size: 22px;
}

.invoice-page .main-col {
  position: relative;
}

.invoice-page h1 {
  margin-top: -54px;
}

.invoice-actions {
  position: absolute;
  top: 96px;
  right: 28px;
  display: flex;
  gap: 14px;
}

.referral-page {
  display: grid;
  grid-template-columns: 340px 1fr 230px;
  gap: 58px;
  margin-top: 0;
}

.ref-left {
  display: grid;
  gap: 22px;
}

.ref-left h2 {
  font-size: 22px;
}

.tier {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #bdd0e8;
  border-radius: 12px;
  background: #f8fbff;
  font-weight: 800;
}

.tier small {
  font-style: italic;
}

.amount-box,
.bonus-box {
  width: 280px;
  min-height: 104px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border: 3px solid var(--green);
  border-radius: 12px;
  background: #e2f8f1;
}

.amount-box strong span,
.bonus-box span {
  display: block;
}

.bonus-box {
  grid-template-columns: 42px 1fr 28px;
  border-width: 1px;
  background: #fff;
}

.bonus-box.selected {
  border-width: 3px;
}

.ref-center h1 {
  margin-top: 12px;
  text-align: center;
  font-size: 32px;
}

.share-col {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 32px;
}

.share-col span {
  color: #9ca7b5;
}

.share-col button:not(.white-btn) {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #bdc7d8;
  font-weight: 900;
}

.profile-page {
  display: grid;
  grid-template-columns: 1fr 700px 1fr;
  gap: 22px;
  align-items: start;
}

.profile-page h1 {
  grid-column: 1 / 4;
  text-align: center;
  font-size: 32px;
}

.upload-logo {
  justify-self: end;
  width: 280px;
  height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed #7fb1ff;
  background: #e9f1ff;
}

.upload-logo button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

.profile-card {
  min-height: 635px;
  display: grid;
  gap: 28px;
  padding: 44px 58px;
  border-radius: 12px;
  background: #fff;
}

.profile-item span {
  color: #99a3b4;
  margin-bottom: 10px;
}

.profile-card p {
  align-self: end;
  text-align: center;
  font-size: 14px;
}

.settings-card {
  width: 620px;
}

.admin-page h1 {
  margin-bottom: 32px;
  text-align: center;
  font-size: 32px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
}

.admin-card {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-card h2 {
  font-size: 24px;
}

.admin-wide {
  min-width: 0;
  grid-row: span 2;
  overflow-x: auto;
}

.admin-table {
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
}

.admin-table td:first-child strong,
.admin-table td:first-child small {
  display: block;
}

.admin-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-table input,
.admin-table select {
  min-width: 130px;
}

.compact-btn {
  min-height: 42px;
  padding: 0 18px;
}

.coin {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #0a45b7;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 1px 4px rgba(18, 31, 58, 0.12);
}

.coin.eur {
  background: #073b98;
}

.coin.eur::before {
  content: "";
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 3px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 73% 7px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 88% 14px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 88% 22px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 73% 29px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 50% 33px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 27% 29px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 12% 22px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 12% 14px, #ffd638 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 27% 7px, #ffd638 0 1.2px, transparent 1.4px);
}

.coin.usd {
  background:
    linear-gradient(#fff 0 7.7%, #c91f35 7.7% 15.4%, #fff 15.4% 23.1%, #c91f35 23.1% 30.8%, #fff 30.8% 38.5%, #c91f35 38.5% 46.2%, #fff 46.2% 53.9%, #c91f35 53.9% 61.6%, #fff 61.6% 69.3%, #c91f35 69.3% 77%, #fff 77% 84.7%, #c91f35 84.7% 92.4%, #fff 92.4% 100%);
}

.coin.usd::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 22px;
  height: 21px;
  background: #244a9b;
}

.coin.gbp {
  background: #f4f7fb;
  color: #11224a;
  font-size: 10px;
}

.coin.usdt {
  background: #25a779;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.coin.usdt::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.coin.usdt::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  width: 4px;
  height: 17px;
  border-radius: 999px;
  background: #fff;
}

@media (max-width: 1100px) {
  .portal {
    grid-template-columns: 112px 1fr;
  }

  .topbar {
    grid-template-columns: 210px 1fr;
  }

  .top-tools {
    display: none;
  }

  .brand-text {
    font-size: 26px;
  }

  .action {
    width: 130px;
  }

  .side-menu button {
    font-size: 12px;
  }

  .dashboard-grid,
  .flow-page,
  .split-page,
  .referral-page,
  .profile-page {
    display: block;
  }

  .content {
    padding: 36px 16px 80px;
  }
}

/* Adaptive layout: keep the banking-style desktop UI, but allow it to breathe on
   smaller screens and browser zoom levels without horizontal page overflow. */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
svg,
table {
  max-width: 100%;
}

.portal {
  grid-template-columns: clamp(96px, 9.5vw, 180px) minmax(0, 1fr);
  grid-template-rows: clamp(132px, 14vw, 206px) 1fr;
}

.topbar {
  grid-template-columns: minmax(170px, 18vw) minmax(330px, 42vw) minmax(220px, 1fr);
  height: clamp(132px, 14vw, 206px);
}

.brand-text {
  margin: clamp(24px, 3.4vw, 50px) 0 0 clamp(14px, 2vw, 28px);
  font-size: clamp(20px, 2.2vw, 31px);
}

.quick-actions {
  gap: clamp(8px, 1.1vw, 14px);
  padding-top: clamp(24px, 3vw, 42px);
  min-width: 0;
}

.action {
  width: clamp(105px, 12vw, 160px);
  height: clamp(44px, 4.7vw, 56px);
  font-size: clamp(14px, 1.35vw, 18px);
}

.top-tools {
  min-width: 0;
}

.top-tools button {
  min-width: clamp(54px, 6vw, 82px);
  font-size: clamp(12px, 1.35vw, 18px);
}

.top-tools .activity {
  width: clamp(104px, 12vw, 142px);
  min-width: 0;
}

.side-menu button {
  height: clamp(72px, 8vw, 98px);
  font-size: clamp(12px, 1.35vw, 18px);
}

.content {
  min-width: 0;
  min-height: calc(100vh - clamp(132px, 14vw, 206px));
  padding: clamp(32px, 6vw, 96px) clamp(16px, 2vw, 28px) 70px;
}

.dashboard-grid {
  grid-template-columns: minmax(280px, 0.95fr) minmax(54px, 0.2fr) minmax(150px, 0.55fr) minmax(54px, 0.2fr) minmax(150px, 0.55fr);
  gap: clamp(24px, 3.5vw, 54px) clamp(16px, 2.3vw, 36px);
}

.summary strong {
  font-size: clamp(30px, 3.5vw, 44px);
}

.metric-label strong {
  font-size: clamp(20px, 2.2vw, 28px);
}

.chart-card,
.latest,
.account-list,
.main-col,
.form-col,
.method-col,
.admin-card,
.profile-card {
  min-width: 0;
}

.chart-card svg {
  height: clamp(220px, 24vw, 310px);
}

.card-shell {
  width: min(1045px, 100%);
  padding: clamp(22px, 4vw, 60px) clamp(22px, 8vw, 145px);
}

.flow-page {
  grid-template-columns: minmax(260px, 420px) minmax(320px, 700px);
}

.white-card {
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4.6vw, 56px);
}

.split-page {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 28vw);
}

.filters-panel {
  padding: clamp(36px, 5vw, 80px) clamp(22px, 4vw, 56px) 60px;
}

.accounts-page {
  padding: 0 clamp(18px, 7vw, 110px);
}

.account-table {
  display: block;
  overflow-x: auto;
  margin-left: clamp(0px, 18vw, 260px);
  width: auto;
}

.tx-table {
  overflow-x: auto;
}

.tx-table,
.account-table,
.admin-table {
  -webkit-overflow-scrolling: touch;
}

.plans {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.profile-page {
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 700px) minmax(20px, 1fr);
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.chat {
  right: clamp(18px, 3.5vw, 52px);
  bottom: clamp(18px, 2vw, 28px);
  width: clamp(56px, 5vw, 72px);
  height: clamp(56px, 5vw, 72px);
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(150px, 17vw) minmax(320px, 41vw) minmax(190px, 1fr);
  }

  .top-tools .activity {
    width: 112px;
  }

  .top-tools .activity span {
    max-width: 58px;
  }

  .filters-panel {
    font-size: 14px;
  }

  th,
  td {
    padding: 14px 12px;
  }
}

@media (max-width: 980px) {
  .portal {
    display: block;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }

  .brand-text {
    margin: 0;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
  }

  .action {
    width: 100%;
  }

  .top-tools {
    display: flex;
    height: auto;
    padding: 0;
    border-left: 0;
    justify-content: flex-start;
    gap: 10px;
  }

  .top-tools button,
  .top-tools .activity {
    width: auto;
    min-width: 92px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-tools .mini-icon {
    display: none;
  }

  .side-menu {
    position: sticky;
    top: 154px;
    z-index: 3;
    display: flex;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .side-menu button {
    min-width: 110px;
    height: 64px;
    border-left: 0;
    border-bottom: 4px solid transparent;
  }

  .side-menu button.active {
    border-left-color: transparent;
    border-bottom-color: var(--blue);
  }

  .side-menu .mini-icon {
    display: none;
  }

  .content {
    padding: 28px 16px 80px;
    min-height: auto;
    overflow: visible;
  }

  .dashboard-grid,
  .flow-page,
  .split-page,
  .referral-page,
  .profile-page,
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
  }

  .account-list,
  .chart-card,
  .latest {
    grid-column: auto;
    grid-row: auto;
  }

  .metric-illustration {
    display: none;
  }

  .method-col {
    padding-top: 0;
  }

  .main-col {
    padding: 0;
  }

  .filters-panel {
    padding: 24px;
    border-radius: 14px;
  }

  .button-row,
  .invoice-actions,
  .export-row {
    position: static;
    flex-wrap: wrap;
    margin: 0 0 20px;
    justify-content: flex-start;
  }

  .invoice-page h1 {
    margin-top: 0;
  }

  .accounts-page {
    padding: 0;
  }

  .currency-select,
  .left-actions {
    position: static;
    margin-top: 18px;
  }

  .left-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .account-table {
    margin: 24px 0 0;
  }

  .profile-page h1 {
    grid-column: auto;
  }

  .upload-logo {
    justify-self: stretch;
    width: 100%;
  }

  .profile-card,
  .settings-card,
  .segmented {
    width: 100%;
  }

  .card-shell {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .login-page {
    padding: 27px 16px 48px;
  }

  .login-brand {
    margin-bottom: 121px;
    font-size: 26px;
  }

  .signin-card {
    width: min(480px, calc(100vw - 32px));
    min-height: 398px;
    gap: 18px;
    padding: 41px 40px 40px;
  }

  .verify-modal {
    width: min(500px, calc(100vw - 32px));
    min-height: 0;
    padding: 34px 50px 48px;
  }

  .signin-card h1 {
    font-size: 31px;
  }

  .signin-card input {
    height: 42px;
    padding: 0 20px;
    background: #fff;
    font-size: 14px;
  }

  .password-field input {
    padding-right: 52px;
  }

  .password-field button {
    right: 18px;
    width: 20px;
    height: 20px;
  }

  .login-btn {
    min-height: 50px;
    margin-top: 14px;
    font-size: 16px;
  }

  .signup-row {
    gap: 25px;
    margin-top: 31px;
    flex-wrap: wrap;
  }

  .verify-modal {
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .top-tools {
    overflow-x: auto;
  }

  .side-menu {
    top: 258px;
  }

  .summary h2,
  .metric-label span,
  .account-list h2,
  .latest h2 {
    font-size: 22px;
  }

  .account-line {
    grid-template-columns: 40px 1fr;
  }

  .account-line b {
    grid-column: 2;
  }

  .bank-card {
    width: 210px;
    height: 320px;
    font-size: 34px;
  }

  .small-card {
    width: 210px;
    height: 130px;
  }

  .two-fields,
  .admin-grid,
  .referral-page,
  .profile-page {
    grid-template-columns: 1fr;
  }

  .white-card,
  .admin-card {
    padding: 20px;
  }

  .amount-label span {
    float: none;
    display: block;
    margin-top: 6px;
  }

  .chat {
    width: 54px;
    height: 54px;
  }

  .ticket-modal {
    width: calc(100vw - 28px);
    height: calc(100vh - 44px);
    grid-template-rows: 62px 1fr 76px;
  }

  .ticket-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .ticket-side {
    border-right: 0;
    border-bottom: 1px solid #e5ebf2;
  }

  .ticket-side p {
    margin-top: 8px;
  }

  .ticket-compose {
    min-height: 460px;
  }

  .ticket-compose-head {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .ticket-input-row {
    grid-template-columns: 1fr;
  }

  .ticket-tools {
    justify-content: flex-end;
  }
}

@media (min-width: 981px) {
  :root {
    --panel: #f4f6f8;
    --ink: #17213f;
    --muted: #8e9aab;
    --line: #e0e7ef;
    --navy: #111b3c;
    --green: #39d0a3;
    --sky: #62c3ee;
    --violet: #6292f4;
    --shadow: 0 10px 24px rgba(23, 34, 66, 0.035);
  }

  body {
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
  }

  .portal {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: 206px minmax(0, 1fr);
    background: var(--panel);
  }

  .topbar {
    height: 206px;
    grid-template-columns: minmax(230px, 14vw) minmax(500px, 1fr) minmax(360px, 31vw);
    background: #fff;
    border-bottom: 1px solid #edf1f5;
  }

  .brand-text {
    margin: 50px 0 0 28px;
    padding: 0;
    color: #07173a;
    font-size: clamp(30px, 2.25vw, 39px);
    font-weight: 900;
    line-height: 1;
  }

  .quick-actions {
    gap: clamp(18px, 1.25vw, 22px);
    padding-top: 42px;
  }

  .action {
    width: clamp(150px, 11.8vw, 181px);
    height: 56px;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(21, 35, 60, 0.04);
  }

  .deposit {
    background: #3bd0a4;
  }

  .send {
    background: #63c5ef;
  }

  .exchange {
    background: #6290f3;
  }

  .top-tools {
    height: 206px;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(24px, 2.4vw, 48px);
    padding-top: 38px;
    border-left: 1px solid #dfe5ed;
  }

  .top-tools button {
    min-width: 74px;
    color: #8d96a6;
    font-size: 18px;
    font-weight: 500;
  }

  .top-tools button.activity {
    width: 178px;
    min-width: 142px;
    height: 58px;
    gap: 14px;
    border: 1px solid #e0e5ec;
    border-radius: 14px;
    background: #fff;
    color: #17213f;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(21, 35, 60, 0.03);
  }

  .top-tools button.activity span:not(.mini-icon) {
    max-width: 80px;
  }

  .top-tools button.activity .mini-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
  }

  .side-menu {
    background: #fff;
  }

  .side-menu button {
    height: 94px;
    gap: 7px;
    border-left-width: 7px;
    color: #8f98a7;
    font-size: 18px;
    line-height: 1.12;
    font-weight: 500;
  }

  .side-menu button.active {
    color: #17213f;
    background: #eaf2ff;
    border-left-color: #1769ff;
  }

  .mini-icon {
    width: 30px;
    height: 30px;
    border-color: #c7d3e3;
    background: transparent;
    box-shadow: none;
  }

  .side-menu .mini-icon {
    width: 34px;
    height: 34px;
    color: #c0ccdc;
  }

  .side-menu button.active .mini-icon {
    color: #1672ff;
  }

  .content {
    min-height: calc(100vh - 206px);
    overflow: hidden;
    padding: 94px 28px 70px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(430px, 520px) 110px minmax(220px, 1fr) 110px minmax(220px, 1fr);
    gap: 54px 36px;
  }

  .summary h2,
  .metric-label span,
  .account-list h2,
  .latest h2 {
    color: #17213f;
    font-size: 26px;
    font-weight: 500;
  }

  .summary strong {
    margin-top: 2px;
    font-size: 44px;
    font-weight: 850;
    line-height: 1.1;
  }

  .metric-label {
    padding-top: 36px;
  }

  .metric-label strong {
    font-size: 28px;
    font-weight: 850;
    line-height: 1.05;
  }

  .account-line {
    min-height: 78px;
    border-bottom-color: #d9dee7;
  }

  .account-line strong {
    font-size: 18px;
    font-weight: 850;
  }

  .account-line span {
    font-size: 18px;
  }

  .account-line b {
    font-size: 18px;
    font-weight: 850;
  }

  .chart-card,
  .white-card,
  .plan-card,
  .profile-card,
  .admin-card,
  .card-shell {
    border: 1px solid rgba(225, 231, 238, 0.55);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .chart-card {
    padding: 28px 30px;
    border-radius: 14px;
  }

  .chart-card svg {
    height: clamp(280px, 25vw, 360px);
  }

  table {
    background: #fff;
  }

  th {
    color: #a7acb8;
    font-size: 15px;
    font-weight: 750;
  }

  td {
    color: #202b49;
    font-weight: 600;
  }

  .tx-table,
  .account-table {
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .status-pill {
    min-height: 42px;
    padding: 0 18px;
    border: 2px solid #45d332;
    border-radius: 999px;
    color: #34c827;
    background: #fff;
    font-weight: 650;
  }

  .filters-panel {
    background: #e9eef0;
  }

  .filters-panel h2 {
    color: #17213f;
    font-size: 26px;
    font-weight: 500;
  }

  input,
  select {
    border-color: #dce4ec;
    border-radius: 12px;
    background: #fff;
    color: #17213f;
    font-size: 18px;
  }

  label {
    color: #8ca6b4;
    font-size: 16px;
    font-weight: 500;
  }

  .method-card {
    border: 2px solid #dde4ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(23, 34, 66, 0.025);
  }

  .method-card.selected {
    border-color: #39d0a3;
  }

  .method-card strong {
    font-size: 18px;
    font-weight: 850;
  }

  .method-card p {
    color: #17213f;
    font-size: 16px;
    line-height: 1.35;
  }

  .white-card {
    border-radius: 10px;
  }

  .continue-btn {
    height: 70px;
    border-radius: 10px;
    background: #cbdbe3;
    font-size: 22px;
  }

  .chat {
    width: 72px;
    height: 72px;
    background: #28c98e;
    box-shadow: 0 12px 30px rgba(40, 201, 142, 0.28);
  }
}

@media (min-width: 981px) {
  :root {
    --panel: #f5f6f8;
    --shadow: 0 10px 26px rgba(18, 31, 58, 0.045);
  }

  body {
    color: #17213f;
    background: #f5f6f8;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  .portal {
    grid-template-columns: 180px 1fr;
    grid-template-rows: 196px 1fr;
  }

  .topbar {
    height: 196px;
    border-bottom-color: #edf1f5;
  }

  .brand-text {
    margin-top: 48px;
    font-size: 27px;
    font-weight: 850;
    letter-spacing: 0;
  }

  .quick-actions {
    gap: 16px;
    padding-top: 42px;
  }

  .action {
    width: 178px;
    height: 54px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(38, 113, 255, 0.06);
  }

  .top-tools {
    padding-top: 38px;
  }

  .top-tools button {
    font-size: 17px;
  }

  .top-tools button.activity {
    height: 56px;
    border-radius: 13px;
    box-shadow: none;
  }

  .side-menu button {
    height: 92px;
    gap: 6px;
    color: #9099a8;
    font-size: 17px;
    font-weight: 500;
  }

  .side-menu button.active {
    background: #edf4ff;
    color: #17213f;
    font-weight: 540;
  }

  .side-menu .mini-icon {
    width: 31px;
    height: 31px;
    color: #c2cedd;
  }

  .side-menu .mini-icon svg path,
  .side-menu .mini-icon svg circle,
  .side-menu .mini-icon svg rect {
    stroke-width: 1.72;
  }

  .content {
    min-height: calc(100vh - 196px);
    padding: 82px 28px 68px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(360px, 500px) 94px minmax(190px, 1fr) 94px minmax(190px, 1fr);
    gap: 46px 34px;
  }

  .summary h2,
  .metric-label span,
  .account-list h2,
  .latest h2 {
    color: #17213f;
    font-size: 23px;
    font-weight: 500;
  }

  .summary strong {
    margin-top: 4px;
    font-size: 38px;
    font-weight: 820;
    letter-spacing: 0;
  }

  .metric-label {
    padding-top: 35px;
  }

  .metric-label strong {
    font-size: 25px;
    font-weight: 820;
  }

  .wallet-art,
  .pie-art {
    width: 82px;
    height: 70px;
    filter: saturate(0.94);
  }

  .account-line {
    min-height: 70px;
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
    border-bottom-color: #dde3eb;
  }

  .account-line strong,
  .account-line span,
  .account-line b {
    font-size: 16px;
  }

  .account-line span {
    color: #17213f;
    opacity: 0.84;
  }

  .coin {
    width: 38px;
    height: 38px;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(18, 31, 58, 0.08);
  }

  .cards-title {
    margin-top: 48px;
  }

  .card-preview {
    height: 258px;
    margin-top: 18px;
    border-radius: 10px;
  }

  .chart-card,
  .white-card,
  .plan-card,
  .profile-card,
  .admin-card,
  .card-shell,
  .tx-table,
  .account-table {
    border: 1px solid #edf1f5;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(18, 31, 58, 0.035);
  }

  .chart-card {
    padding: 24px 26px;
    border-radius: 12px;
  }

  .chart-card svg {
    height: 290px;
  }

  .latest h2 {
    margin-bottom: 30px;
  }

  th,
  td {
    padding: 14px 16px;
    border-bottom-color: #edf1f5;
    font-size: 15px;
  }

  th {
    color: #a9afbb;
    font-weight: 650;
  }

  td {
    color: #202b49;
    font-weight: 550;
  }

  .status-pill {
    min-height: 34px;
    padding: 0 14px;
    border-width: 1.5px;
    font-size: 15px;
    font-weight: 600;
  }

  .accounts-page h1,
  .center-page h1,
  .savings-page h1,
  .exchange-page h1,
  .flow-page h1,
  .profile-page h1,
  .split-page h1 {
    font-size: 30px;
    font-weight: 780;
  }

  input,
  select {
    height: 50px;
    border-color: #dfe6ee;
    border-radius: 10px;
    font-size: 16px;
  }

  label {
    color: #8ea4b3;
    font-size: 15px;
  }

  .white-card {
    gap: 24px;
    padding: 38px 50px;
  }

  .amount-label {
    font-size: 21px;
  }

  .amount-label input {
    height: 52px;
    font-size: 28px;
  }

  .method-card {
    min-height: 92px;
    border-width: 1.5px;
    box-shadow: none;
  }

  .method-card strong {
    font-size: 17px;
  }

  .continue-btn,
  .dark-btn.wide-btn {
    height: 62px;
    font-size: 20px;
    border-radius: 9px;
  }

  .chat {
    width: 62px;
    height: 62px;
    box-shadow: 0 10px 24px rgba(40, 201, 142, 0.24);
  }

  .chat::before {
    inset: 20px 18px 22px;
    border-width: 2.5px;
  }

  .chat::after {
    right: 21px;
    bottom: 19px;
    width: 8px;
    height: 8px;
    border-left-width: 2.5px;
    border-bottom-width: 2.5px;
  }
}

@media (min-width: 981px) {
  .portal {
    grid-template-columns: 164px minmax(0, 1fr);
    grid-template-rows: 186px 1fr;
  }

  .topbar {
    grid-template-columns: 238px minmax(360px, 1fr) minmax(316px, 430px);
    height: 186px;
  }

  .brand-text {
    margin: 46px 0 0 26px;
    font-size: 25px;
    white-space: nowrap;
  }

  .quick-actions {
    min-width: 0;
    gap: 12px;
    padding: 40px 18px 0 0;
  }

  .action {
    flex: 1 1 0;
    width: auto;
    min-width: 108px;
    max-width: 158px;
    height: 52px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 16px;
    white-space: nowrap;
  }

  .top-tools {
    min-width: 0;
    justify-content: flex-end;
    gap: 20px;
    padding: 36px 14px 0 22px;
  }

  .top-tools button {
    min-width: 54px;
    font-size: 14px;
    line-height: 1.1;
  }

  .top-tools .mini-icon,
  .top-tools button.activity .mini-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .top-tools button.activity {
    width: 126px;
    min-width: 118px;
    height: 50px;
    gap: 8px;
    border-radius: 12px;
    font-size: 15px;
  }

  .top-tools button.activity span:not(.mini-icon) {
    max-width: 62px;
  }

  .side-menu button {
    height: 82px;
    gap: 5px;
    border-left-width: 6px;
    font-size: 15px;
    line-height: 1.05;
  }

  .side-menu .mini-icon {
    width: 27px;
    height: 27px;
  }

  .side-menu .mini-icon svg path,
  .side-menu .mini-icon svg circle,
  .side-menu .mini-icon svg rect {
    stroke-width: 1.58;
  }

  .content {
    min-height: calc(100vh - 186px);
    padding-top: 74px;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .topbar {
    grid-template-columns: 210px minmax(330px, 1fr) minmax(270px, 350px);
  }

  .brand-text {
    margin-left: 22px;
    font-size: 22px;
  }

  .quick-actions {
    gap: 9px;
    padding-right: 12px;
  }

  .action {
    min-width: 92px;
    height: 48px;
    padding: 0 8px;
    font-size: 14px;
  }

  .top-tools {
    gap: 12px;
    padding-left: 14px;
    padding-right: 10px;
  }

  .top-tools button {
    min-width: 46px;
    font-size: 13px;
  }

  .top-tools button.activity {
    width: 108px;
    min-width: 100px;
    height: 48px;
    font-size: 14px;
  }

  .top-tools button.activity span:not(.mini-icon) {
    max-width: 54px;
  }
}

@media (min-width: 981px) {
  .transaction-page {
    grid-template-columns: minmax(720px, 1fr) 480px;
    gap: 0;
    margin: -74px -28px -68px 0;
    min-height: calc(100vh - 186px);
  }

  .transaction-page .main-col {
    padding: 94px 28px 70px;
  }

  .transaction-page .button-row {
    display: grid;
    grid-template-columns: 196px 224px 1fr 196px;
    gap: 14px;
    align-items: center;
    margin-bottom: -48px;
  }

  .transaction-page .button-row .dark-btn,
  .transaction-page .button-row .soft-btn {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }

  .transaction-page .button-row .soft-btn {
    grid-column: 4;
    justify-self: end;
    margin-left: 0;
    background: #e8f1ff;
    color: var(--blue);
  }

  .transaction-page .button-row .mini-icon {
    width: 22px;
    height: 22px;
  }

  .transaction-page .soft-btn b {
    width: 30px;
    height: 30px;
    right: -12px;
    top: -14px;
    font-size: 15px;
  }

  .transaction-page h1 {
    margin: 0 0 48px;
    font-size: 32px;
    line-height: 1.1;
  }

  .transaction-page .tx-table {
    display: table;
    width: 100%;
    margin-top: 62px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    table-layout: auto;
    overflow: visible;
  }

  .transaction-page thead th {
    padding: 0 14px 18px;
    border-bottom: 0;
    color: #a5abb8;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.1;
  }

  .transaction-page tbody td {
    min-height: 82px;
    padding: 17px 14px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.2;
    vertical-align: middle;
  }

  .transaction-page th:nth-child(1),
  .transaction-page td:nth-child(1) {
    width: 90px;
    padding-left: 42px;
  }

  .transaction-page th:nth-child(2),
  .transaction-page td:nth-child(2) {
    width: 170px;
  }

  .transaction-page th:nth-child(3),
  .transaction-page td:nth-child(3) {
    width: 145px;
  }

  .transaction-page th:nth-child(4),
  .transaction-page td:nth-child(4) {
    min-width: 230px;
  }

  .transaction-page th:nth-child(7),
  .transaction-page td:nth-child(7) {
    width: 112px;
  }

  .transaction-page th:nth-child(8),
  .transaction-page td:nth-child(8) {
    width: 155px;
    white-space: nowrap;
  }

  .transaction-page th:nth-child(9),
  .transaction-page td:nth-child(9) {
    width: 135px;
  }

  .transaction-page th:last-child,
  .transaction-page td:last-child {
    width: 58px;
    padding-right: 28px;
  }

  .transaction-page .status-pill {
    min-height: 42px;
    padding: 0 17px;
    border-width: 1.5px;
    font-size: 16px;
  }

  .transaction-page .more {
    width: 44px;
    height: 34px;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    background: #fff;
    line-height: 1;
  }

  .transaction-page .export-row {
    gap: 14px;
    margin-top: 28px;
  }

  .transaction-page .export-row button {
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    white-space: nowrap;
  }

  .transaction-page .filters-panel {
    padding: 80px 56px 80px;
    background: #e7ecef;
  }

  .transaction-page .filters-panel h2 {
    margin-bottom: 28px;
    font-size: 26px;
    line-height: 1.1;
  }

  .transaction-page .filters-panel label {
    margin-bottom: 24px;
    color: #8ba5b5;
    font-size: 15px;
    line-height: 1.15;
  }

  .transaction-page .filters-panel input,
  .transaction-page .filters-panel select {
    height: 58px;
    margin-top: 10px;
    border-radius: 12px;
    font-size: 18px;
  }

  .transaction-page .two-fields {
    gap: 22px;
  }
}

@media (min-width: 981px) and (max-width: 1440px) {
  .transaction-page {
    grid-template-columns: minmax(620px, 1fr) 410px;
  }

  .transaction-page .main-col {
    padding-left: 24px;
    padding-right: 24px;
  }

  .transaction-page .filters-panel {
    padding-left: 32px;
    padding-right: 32px;
  }

  .transaction-page .button-row {
    grid-template-columns: minmax(150px, 190px) minmax(170px, 220px) 1fr minmax(150px, 196px);
  }

  .transaction-page .button-row .dark-btn,
  .transaction-page .button-row .soft-btn {
    font-size: 16px;
  }

  .transaction-page .tx-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .transaction-page thead th {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 14px;
  }

  .transaction-page tbody td {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 15px;
  }

  .transaction-page th:nth-child(1),
  .transaction-page td:nth-child(1) {
    padding-left: 28px;
  }

  .transaction-page th:last-child,
  .transaction-page td:last-child {
    padding-right: 20px;
  }
}

@media (min-width: 981px) {
  body {
    background: #f4f6f8;
  }

  .portal {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: 206px minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: 286px minmax(620px, 1fr) 444px;
    height: 206px;
    border-bottom: 1px solid #edf1f5;
  }

  .brand-text {
    margin: 51px 0 0 27px;
    font-size: 29px;
    font-weight: 900;
    line-height: 1;
    color: #07173a;
  }

  .quick-actions {
    gap: 20px;
    padding: 42px 20px 0 0;
  }

  .action {
    flex: 0 0 auto;
    width: 180px;
    max-width: none;
    height: 56px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
  }

  .top-tools {
    height: 206px;
    justify-content: center;
    gap: 34px;
    padding: 38px 12px 0 28px;
    border-left: 1px solid #dfe5ed;
  }

  .top-tools button {
    min-width: 76px;
    gap: 7px;
    font-size: 18px;
    color: #8e98a7;
  }

  .top-tools .mini-icon,
  .top-tools button.activity .mini-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .top-tools button.activity {
    width: 176px;
    min-width: 176px;
    height: 58px;
    gap: 14px;
    border-radius: 14px;
    font-size: 18px;
  }

  .top-tools button.activity span:not(.mini-icon) {
    max-width: 82px;
  }

  .side-menu button {
    height: 98px;
    gap: 7px;
    border-left-width: 7px;
    font-size: 18px;
    line-height: 1.08;
    font-weight: 500;
  }

  .side-menu .mini-icon {
    width: 34px;
    height: 34px;
  }

  .side-menu .mini-icon svg path,
  .side-menu .mini-icon svg circle,
  .side-menu .mini-icon svg rect {
    stroke-width: 1.72;
  }

  .content {
    min-height: calc(100vh - 206px);
    padding: 96px 28px 70px;
    overflow: auto;
  }

  .chat {
    right: 52px;
    bottom: 28px;
    width: 72px;
    height: 72px;
  }

  .accounts-page h1,
  .center-page h1,
  .savings-page h1,
  .exchange-page h1,
  .flow-page h1,
  .profile-page h1,
  .split-page h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .dark-btn,
  .soft-btn,
  .white-btn,
  .export-row button {
    font-size: 16px;
  }

  .transaction-page {
    grid-template-columns: minmax(760px, 1fr) 480px;
    margin: -96px -28px -70px 0;
    min-height: calc(100vh - 206px);
  }

  .transaction-page .main-col {
    padding: 96px 28px 70px;
  }

  .transaction-page .button-row {
    grid-template-columns: 196px 224px 1fr 196px;
    gap: 14px;
    margin-bottom: -54px;
  }

  .transaction-page .button-row .dark-btn,
  .transaction-page .button-row .soft-btn {
    height: 56px;
    min-height: 56px;
    border-radius: 12px;
    font-size: 18px;
  }

  .transaction-page .tx-table {
    margin-top: 62px;
    border-radius: 12px;
  }

  .transaction-page thead th {
    padding-bottom: 18px;
    font-size: 15px;
  }

  .transaction-page tbody td {
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 16px;
  }

  .transaction-page .filters-panel {
    padding: 80px 56px 80px;
  }
}

@media (min-width: 981px) and (max-width: 1560px) {
  .portal {
    grid-template-columns: 164px minmax(0, 1fr);
    grid-template-rows: 186px minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: 238px minmax(380px, 1fr) minmax(316px, 430px);
    height: 186px;
  }

  .brand-text {
    margin: 46px 0 0 26px;
    font-size: 25px;
  }

  .quick-actions {
    gap: 12px;
    padding-top: 40px;
    padding-right: 18px;
  }

  .action {
    flex: 1 1 0;
    width: auto;
    min-width: 108px;
    max-width: 158px;
    height: 52px;
    padding: 0 12px;
    font-size: 16px;
  }

  .top-tools {
    height: 186px;
    justify-content: flex-end;
    gap: 20px;
    padding: 36px 14px 0 22px;
  }

  .top-tools button {
    min-width: 54px;
    font-size: 14px;
  }

  .top-tools .mini-icon,
  .top-tools button.activity .mini-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .top-tools button.activity {
    width: 126px;
    min-width: 118px;
    height: 50px;
    gap: 8px;
    border-radius: 12px;
    font-size: 15px;
  }

  .side-menu button {
    height: 82px;
    gap: 5px;
    border-left-width: 6px;
    font-size: 15px;
  }

  .side-menu .mini-icon {
    width: 27px;
    height: 27px;
  }

  .content {
    min-height: calc(100vh - 186px);
    padding-top: 74px;
  }

  .transaction-page {
    grid-template-columns: minmax(620px, 1fr) minmax(360px, 410px);
    margin-top: -74px;
    min-height: calc(100vh - 186px);
  }

  .transaction-page .main-col {
    padding-top: 88px;
  }

  .transaction-page .filters-panel {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .topbar {
    grid-template-columns: 210px minmax(330px, 1fr) minmax(270px, 350px);
  }

  .transaction-page {
    grid-template-columns: minmax(600px, 1fr) 380px;
  }

  .transaction-page .button-row {
    grid-template-columns: minmax(150px, 190px) minmax(170px, 220px) 1fr minmax(148px, 180px);
  }
}

.loading-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  background:
    radial-gradient(circle at 67% 31%, rgba(255, 255, 255, 0) 0 16%, rgba(238, 240, 243, 0.5) 17%, rgba(255, 255, 255, 0) 18% 22%, rgba(238, 240, 243, 0.4) 23%, rgba(255, 255, 255, 0) 24%),
    repeating-linear-gradient(76deg, rgba(255, 255, 255, 0.78) 0 30px, rgba(235, 237, 240, 0.62) 31px 46px, rgba(255, 255, 255, 0.9) 47px 86px),
    #f6f7f8;
}

.loading-brand {
  color: #111d3d;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #dfe6ee;
  border-top-color: #111b3c;
  border-radius: 50%;
  animation: jeton-spin 0.8s linear infinite;
}

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

.page-loading-panel {
  min-height: min(420px, calc(100vh - 260px));
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 35, 60, 0.04);
}

.page-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e4ebf2;
  border-top-color: #1769ff;
  border-radius: 50%;
  animation: jeton-spin 0.75s linear infinite;
}

.portal .brand-text {
  color: #111d3d;
  font-weight: 900;
}

.portal .bank-card {
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(145deg, #101b3b, #243a78);
}

.portal .small-card {
  font-size: 20px;
}

@media (max-width: 980px) {
  .portal {
    background: #f5f6f8;
  }

  .topbar {
    gap: 12px;
    padding: 18px 16px 16px;
    background: #fff;
    box-shadow: 0 1px 0 #edf1f5;
  }

  .brand-text {
    justify-self: start;
    color: #111d3d;
    font-size: 24px;
    line-height: 1;
  }

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

  .action {
    min-width: 0;
    width: 100%;
    height: 42px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
  }

  .top-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .top-tools button,
  .top-tools .activity {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #fff;
    color: #8f98a7;
    font-size: 13px;
    font-weight: 700;
  }

  .top-tools .activity {
    color: #17213f;
  }

  .side-menu {
    top: 182px;
    background: #fff;
  }

  .side-menu button {
    min-width: 96px;
    height: 54px;
    font-size: 13px;
  }

  .content {
    padding: 22px 16px 78px;
  }

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

  .summary,
  .metric-label,
  .account-list,
  .chart-card,
  .latest {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(21, 35, 60, 0.04);
  }

  .summary {
    grid-column: 1 / -1;
    padding: 22px;
  }

  .summary h2,
  .metric-label span,
  .account-list h2,
  .latest h2 {
    font-size: 18px;
    font-weight: 700;
  }

  .summary strong {
    font-size: 30px;
  }

  .metric-label {
    padding: 18px;
  }

  .metric-label strong {
    font-size: 19px;
  }

  .account-list {
    grid-column: 1 / -1;
    padding: 20px;
  }

  .account-line {
    min-height: 60px;
    grid-template-columns: 34px 1fr;
  }

  .account-line b {
    grid-column: 2;
    font-size: 15px;
  }

  .cards-title {
    margin-top: 28px;
  }

  .card-preview {
    height: 170px;
    padding: 20px;
  }

  .chart-card,
  .latest {
    grid-column: 1 / -1;
    padding: 20px;
  }

  .chart-card svg {
    height: 220px;
  }

  .latest h2 {
    margin-bottom: 16px;
  }

  .latest table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .action {
    height: 42px;
    padding: 0 6px;
    font-size: 13px;
  }

  .top-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-tools button,
  .top-tools .activity {
    min-width: 0;
    font-size: 12px;
  }

  .side-menu {
    top: 178px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mini-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.mini-icon svg {
  width: 24px;
  height: 24px;
}

.mini-icon svg path,
.mini-icon svg circle,
.mini-icon svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon svg .blue {
  stroke: currentColor;
}

.quick-actions .mini-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
}

.quick-actions .mini-icon svg {
  width: 18px;
  height: 18px;
}

.quick-actions .mini-icon svg path,
.quick-actions .mini-icon svg circle,
.quick-actions .mini-icon svg rect {
  stroke-width: 2.2;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.action span:not(.mini-icon) {
  line-height: 1;
}

.top-tools .mini-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
}

.top-tools .mini-icon svg {
  width: 22px;
  height: 22px;
}

.side-menu .mini-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  color: #aeb9c8;
}

.side-menu .mini-icon svg {
  width: 28px;
  height: 28px;
}

.side-menu button.active .mini-icon,
.side-menu button.active {
  color: #1769ff;
}

.method-card .mini-icon,
.method-icon .mini-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
}

.method-card .mini-icon svg,
.method-icon .mini-icon svg {
  width: 26px;
  height: 26px;
}

.top-tools button {
  font-weight: 700;
}

.side-menu button,
.top-tools button,
.action,
.method-card,
.account-line,
.summary,
.metric-label,
.latest {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 980px) {
  .quick-actions .mini-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .quick-actions .mini-icon svg {
    width: 16px;
    height: 16px;
  }

  .top-tools .mini-icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .top-tools .mini-icon svg {
    width: 18px;
    height: 18px;
  }

  .top-tools button {
    gap: 6px;
  }

  .side-menu .mini-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .side-menu .mini-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Weight correction: Jetonbank UI is clean and medium-weight, not heavy. */
.login-brand,
.loading-brand,
.brand-text {
  font-weight: 760;
}

.signin-card h1 {
  font-weight: 740;
}

.verify-modal h2 {
  font-weight: 500;
}

.action,
.top-tools button,
.top-tools .activity,
.side-menu button,
.method-card,
.white-btn,
.soft-btn,
.dark-btn,
.clear-btn {
  font-weight: 560;
}

.side-menu button.active,
.top-tools .activity,
.action span:not(.mini-icon) {
  font-weight: 650;
}

.summary h2,
.metric-label span,
.account-list h2,
.latest h2 {
  font-weight: 560;
}

.summary strong {
  font-weight: 720;
}

.metric-label strong,
.account-line b {
  font-weight: 660;
}

.account-line strong,
.profile-item strong,
.status-pill {
  font-weight: 560;
}

.account-line span,
td,
label,
input,
select {
  font-weight: 400;
}

.toggle-row {
  min-height: 50px;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  color: #172242;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: #1769ff;
}

.toggle-row span {
  font-weight: 520;
}

.portal .brand-text {
  font-weight: 760 !important;
}

.content h1,
.accounts-page h1,
.center-page h1,
.savings-page h1,
.exchange-page h1,
.flow-page h1,
.profile-page h1,
.split-page h1,
.admin-page h1 {
  font-weight: 640 !important;
}

.summary h2,
.metric-label span,
.account-list h2,
.latest h2 {
  font-weight: 520 !important;
}

.summary strong {
  font-weight: 680 !important;
}

/* Root-provided image assets replace the temporary drawn placeholders. */
.coin.asset-coin {
  background: transparent !important;
  color: transparent;
  box-shadow: none;
}

.coin.asset-coin::before,
.coin.asset-coin::after {
  content: none !important;
}

.coin.asset-coin img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.wallet-art,
.pie-art {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
}

.wallet-art {
  width: 100px;
  height: 86px;
}

.pie-art {
  width: 100px;
  height: 86px;
  border-radius: 0;
}

.metric-art-img {
  width: 100px;
  height: 100px;
  display: block;
  object-fit: contain;
}

.metric-label strong {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: normal;
}

.mini-icon.image-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.side-menu .mini-icon.image-icon,
.top-tools .mini-icon.image-icon {
  color: inherit;
}

.chat {
  background: transparent url("./icons/ui/chat.png?v=20260622-0241") center / 100% 100% no-repeat !important;
  box-shadow: 0 8px 24px rgba(39, 201, 144, 0.34);
}

.chat::before,
.chat::after {
  content: none !important;
}

/* Overview desktop pass: match the Jetonbank overview reference layout. */
@media (min-width: 981px) {
  .portal {
    --sidebar-w: clamp(120px, 7.6171875vw, 195px);
    --topbar-h: clamp(118px, 6.953125vw, 178px);
    --page-x: clamp(18px, 1.3671875vw, 35px);
    --page-top: clamp(72px, 5.078125vw, 130px);
    --page-bottom: clamp(64px, 3.515625vw, 90px);
    --column-gap: clamp(24px, 2.734375vw, 70px);
    --row-gap: clamp(76px, 6.25vw, 160px);
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) !important;
    grid-template-rows: var(--topbar-h) 1fr !important;
    background: #f4f5f7;
  }

  .topbar {
    grid-template-columns: clamp(210px, 14.0625vw, 360px) clamp(450px, 28.125vw, 720px) minmax(220px, 1fr) clamp(360px, 23.046875vw, 590px) !important;
    height: var(--topbar-h) !important;
    border-bottom: 1px solid #edf1f5;
  }

  .brand-text {
    grid-column: 1;
    margin: clamp(36px, 2.9296875vw, 75px) 0 0 var(--page-x) !important;
    font-size: clamp(24px, 1.40625vw, 36px) !important;
    line-height: 1;
    letter-spacing: 0;
  }

  .quick-actions {
    grid-column: 2;
    gap: clamp(14px, 1.015625vw, 26px) !important;
    padding-top: clamp(36px, 2.34375vw, 60px) !important;
  }

  .action {
    width: clamp(132px, 8.828125vw, 226px) !important;
    height: clamp(46px, 2.734375vw, 70px) !important;
    border-radius: clamp(6px, 0.3125vw, 8px) !important;
    font-size: clamp(15px, 0.859375vw, 22px) !important;
    font-weight: 520 !important;
  }

  .quick-actions .mini-icon {
    width: clamp(16px, 0.9375vw, 24px) !important;
    height: clamp(16px, 0.9375vw, 24px) !important;
    min-width: clamp(16px, 0.9375vw, 24px) !important;
  }

  .top-tools {
    grid-column: 4;
    height: var(--topbar-h) !important;
    justify-content: flex-end !important;
    gap: clamp(22px, 1.953125vw, 50px);
    padding: clamp(28px, 1.875vw, 48px) clamp(18px, 1.09375vw, 28px) 0 clamp(20px, 1.40625vw, 36px) !important;
  }

  .top-tools button {
    min-width: clamp(54px, 3.515625vw, 90px) !important;
    color: #929baa;
    font-size: clamp(14px, 1.09375vw, 28px) !important;
    font-weight: 400 !important;
  }

  .top-tools .mini-icon {
    width: clamp(28px, 1.71875vw, 44px) !important;
    height: clamp(28px, 1.71875vw, 44px) !important;
    min-width: clamp(28px, 1.71875vw, 44px) !important;
  }

  .top-tools .mini-icon.image-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .top-tools .activity {
    width: clamp(134px, 9.9609375vw, 255px) !important;
    min-width: clamp(134px, 9.9609375vw, 255px) !important;
    height: clamp(50px, 3.203125vw, 82px) !important;
    border-radius: clamp(10px, 0.546875vw, 14px) !important;
    color: #111b3c;
    font-size: clamp(15px, 1.09375vw, 28px) !important;
    font-weight: 700 !important;
  }

  .top-tools .activity span {
    max-width: none;
  }

  .side-menu button {
    height: clamp(72px, 5.46875vw, 140px) !important;
    gap: clamp(6px, 0.390625vw, 10px);
    border-left-width: 7px;
    font-size: clamp(14px, 1.09375vw, 28px) !important;
    font-weight: 400 !important;
  }

  .side-menu .mini-icon {
    width: clamp(30px, 2.5vw, 64px) !important;
    height: clamp(30px, 2.5vw, 64px) !important;
    min-width: clamp(30px, 2.5vw, 64px) !important;
  }

  .side-menu button.active {
    font-weight: 500 !important;
  }

  .content {
    min-height: calc(100vh - var(--topbar-h)) !important;
    padding: var(--page-top) var(--page-x) var(--page-bottom) var(--page-x) !important;
    overflow: visible;
  }

  .dashboard-grid {
    display: grid !important;
    grid-template-columns:
      clamp(330px, 24.21875vw, 620px)
      clamp(58px, 3.90625vw, 100px)
      clamp(140px, 9.765625vw, 250px)
      clamp(110px, 9.765625vw, 250px)
      clamp(70px, 4.6875vw, 120px)
      clamp(140px, 9.765625vw, 250px)
      minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
    column-gap: var(--column-gap) !important;
    row-gap: var(--row-gap) !important;
    align-items: start;
  }

  .summary {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    justify-items: start;
    text-align: left;
  }

  .summary h2 {
    display: block;
    width: 100%;
    margin-bottom: 5px !important;
    color: #131e3d !important;
    font-size: 18px !important;
    line-height: 15px !important;
    font-weight: 400 !important;
    text-align: left;
  }

  .summary strong {
    display: block;
    width: 100%;
    margin-top: 0;
    color: #131e3d !important;
    font-size: 24px !important;
    font-style: normal !important;
    line-height: 30px !important;
    font-weight: 600 !important;
    text-align: left;
  }

  .wallet-art {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    transform: translateY(clamp(14px, 1.015625vw, 26px));
    width: clamp(96px, 5.859375vw, 150px) !important;
    height: clamp(96px, 5.859375vw, 150px) !important;
  }

  .pie-art {
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    transform: translateY(clamp(16px, 1.09375vw, 28px));
    width: clamp(116px, 6.953125vw, 178px) !important;
    height: clamp(88px, 5.3125vw, 136px) !important;
  }

  .metric-art-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .wallet-art .metric-art-img {
    width: 100% !important;
    height: 100% !important;
  }

  .pie-art .metric-art-img {
    width: clamp(116px, 6.953125vw, 178px) !important;
    height: clamp(88px, 5.3125vw, 136px) !important;
  }

  .deposits-metric {
    grid-column: 3;
    grid-row: 1;
  }

  .expenses-metric {
    grid-column: 6;
    grid-row: 1;
  }

  .metric-label {
    align-self: center;
    transform: translateY(clamp(16px, 1.09375vw, 28px));
    padding-top: 0 !important;
    background: transparent;
    box-shadow: none;
  }

  .metric-label span {
    display: block;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
  }

  .metric-label strong {
    margin-top: 2px;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
  }

  .account-list {
    grid-column: 1;
    grid-row: 2 / 4;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .account-list h2,
  .cards-title,
  .latest h2 {
    font-size: clamp(18px, 1.015625vw, 26px) !important;
    line-height: 1.15;
    font-weight: 400 !important;
  }

  .account-line {
    min-height: clamp(58px, 3.046875vw, 78px) !important;
    grid-template-columns: clamp(34px, 1.640625vw, 42px) minmax(0, 1fr) auto !important;
    gap: clamp(10px, 0.546875vw, 14px);
    border-bottom: 1px solid #d3d9e2;
  }

  .account-line .coin {
    width: clamp(32px, 1.5625vw, 40px);
    height: clamp(32px, 1.5625vw, 40px);
  }

  .account-line strong {
    font-size: clamp(12px, 0.625vw, 16px);
    line-height: 1.12;
    font-weight: 700 !important;
  }

  .account-line span {
    max-width: clamp(120px, 7.421875vw, 190px);
    overflow: hidden;
    color: #172242;
    font-size: clamp(14px, 0.78125vw, 20px);
    line-height: 1.12;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .account-line b {
    grid-column: auto !important;
    font-size: clamp(13px, 0.703125vw, 18px) !important;
    line-height: 1.15;
    font-weight: 700 !important;
  }

  .cards-title {
    margin-top: clamp(30px, 2.1484375vw, 55px) !important;
  }

  .card-preview {
    width: 100%;
    height: auto !important;
    margin-top: clamp(18px, 1.1328125vw, 29px) !important;
    padding: clamp(10px, 0.625vw, 16px) !important;
    border-radius: clamp(8px, 0.46875vw, 12px) !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(21, 35, 60, 0.03);
  }

  .cards-preview-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(6px, 0.3125vw, 8px);
  }

  .order-card-btn {
    width: 100%;
    height: clamp(48px, 2.734375vw, 70px);
    margin-top: clamp(10px, 0.546875vw, 14px);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: clamp(6px, 0.3125vw, 8px);
    color: #fff;
    background: #111b3c;
    font-size: clamp(16px, 0.859375vw, 22px);
    font-weight: 700;
    text-decoration: none;
  }

  .chart-card {
    grid-column: 2 / 8 !important;
    grid-row: 2;
    padding: clamp(8px, 0.46875vw, 12px) clamp(14px, 0.9375vw, 24px) clamp(12px, 0.703125vw, 18px) !important;
    border-radius: clamp(8px, 0.46875vw, 12px) !important;
    background: #fff;
    box-shadow: none;
  }

  .chart-card svg {
    height: clamp(240px, 15vw, 384px) !important;
    display: block;
  }

  .latest {
    grid-column: 2 / 8 !important;
    grid-row: 3;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .latest h2 {
    margin-bottom: clamp(22px, 1.640625vw, 42px) !important;
  }

  .latest-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    font-size: clamp(12px, 0.625vw, 16px);
  }

  .latest-table th {
    height: clamp(26px, 1.40625vw, 36px);
    padding: 0 clamp(18px, 1.640625vw, 42px) clamp(12px, 0.78125vw, 20px);
    color: #a9aebb;
    border: 0;
    background: transparent;
    font-size: clamp(12px, 0.625vw, 16px);
    font-weight: 400;
  }

  .latest-table th:nth-child(1) { width: 15%; }
  .latest-table th:nth-child(2) { width: 15%; }
  .latest-table th:nth-child(3) { width: 33%; }
  .latest-table th:nth-child(4) { width: 12%; }
  .latest-table th:nth-child(5) { width: 11%; }
  .latest-table th:nth-child(6) { width: 14%; }

  .latest-table tbody {
    background: #fff;
  }

  .latest-table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
  }

  .latest-table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
  }

  .latest-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
  }

  .latest-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
  }

  .latest-table td {
    min-height: clamp(58px, 3.2421875vw, 83px);
    padding: clamp(14px, 0.859375vw, 22px) clamp(18px, 1.640625vw, 42px);
    color: #25314f;
    border-bottom: 1px solid #eef1f5;
    background: #fff;
    font-size: clamp(12px, 0.625vw, 16px);
    line-height: 1.2;
    font-weight: 400;
    vertical-align: middle;
  }

  .latest-table td:last-child {
    font-weight: 400;
  }

  .latest-table .fiat-amount {
    white-space: nowrap;
  }

  .latest-table .crypto-amount {
    white-space: normal;
  }

  .status-pill {
    min-width: clamp(76px, 4.21875vw, 108px);
    padding: clamp(7px, 0.390625vw, 10px) clamp(10px, 0.625vw, 16px);
    border: 2px solid #45d033;
    border-radius: 999px;
    color: #38c827;
    background: #fff;
    font-size: clamp(12px, 0.625vw, 16px);
    font-weight: 400 !important;
    text-align: center;
  }

  .chat {
    right: clamp(24px, 2.265625vw, 58px) !important;
    bottom: clamp(20px, 1.171875vw, 30px) !important;
    width: clamp(54px, 2.8125vw, 72px) !important;
    height: clamp(54px, 2.8125vw, 72px) !important;
  }
}

/* Real platform page pass: Accounts, Transactions, Profile. */
@media (min-width: 981px) {
  .accounts-page,
  .profile-page,
  .transaction-page {
    color: #172242;
  }

  .accounts-page h1,
  .profile-page h1,
  .transaction-page h1 {
    color: #121d3b;
    font-size: clamp(28px, 1.25vw, 32px) !important;
    line-height: 1.12;
    font-weight: 700 !important;
  }

  .accounts-page {
    min-height: calc(100vh - var(--topbar-h));
    padding: clamp(4px, 0.234375vw, 6px) clamp(72px, 5.46875vw, 140px) clamp(80px, 4.6875vw, 120px) clamp(112px, 5.859375vw, 150px) !important;
  }

  .accounts-page h1 {
    margin: clamp(26px, 1.5625vw, 40px) 0 clamp(54px, 2.65625vw, 68px);
  }

  .currency-select {
    top: clamp(12px, 0.78125vw, 20px) !important;
    right: clamp(68px, 5.46875vw, 140px) !important;
    width: clamp(176px, 10.2734375vw, 263px) !important;
    height: clamp(44px, 2.34375vw, 60px) !important;
    padding: 0 clamp(16px, 1.0546875vw, 27px);
    border: 1px solid #d9e0e8;
    border-radius: clamp(10px, 0.546875vw, 14px);
    color: #25314f;
    background: #fff;
    font-size: clamp(15px, 0.78125vw, 20px);
    font-weight: 400;
  }

  .currency-menu {
    position: absolute;
    top: clamp(12px, 0.78125vw, 20px) !important;
    right: clamp(68px, 5.46875vw, 140px) !important;
    width: clamp(176px, 10.2734375vw, 263px) !important;
    z-index: 12;
  }

  .currency-menu .currency-select {
    position: static !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .currency-menu.open .currency-select {
    border-color: #1769ff;
    box-shadow: 0 0 0 1px #1769ff;
  }

  .currency-select b {
    color: #263150;
    font-size: clamp(15px, 0.78125vw, 20px);
    line-height: 1;
  }

  .currency-options {
    width: 100%;
    margin-top: clamp(10px, 0.46875vw, 12px);
    overflow: hidden;
    border: 1px solid #d9e0e8;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17, 27, 60, 0.08);
  }

  .currency-options button {
    width: 100%;
    height: clamp(48px, 2.578125vw, 66px);
    display: block;
    padding: 0 clamp(16px, 0.859375vw, 22px);
    border: 0;
    color: #25314f;
    background: #fff;
    font-size: clamp(15px, 0.78125vw, 20px);
    font-weight: 400;
    text-align: left;
  }

  .currency-options button.selected,
  .currency-options button:hover {
    color: #fff;
    background: #111b3c;
  }

  .left-actions {
    top: clamp(118px, 5.46875vw, 140px) !important;
    left: clamp(34px, 3.90625vw, 100px) !important;
    gap: clamp(18px, 1.171875vw, 30px) !important;
  }

  .left-actions .dark-btn {
    width: clamp(190px, 10.3515625vw, 265px) !important;
    height: clamp(50px, 2.421875vw, 62px) !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(9px, 0.5859375vw, 15px);
    padding: 0 clamp(26px, 1.71875vw, 44px) !important;
    border-radius: clamp(9px, 0.46875vw, 12px) !important;
    font-size: clamp(15px, 0.78125vw, 20px) !important;
    font-weight: 400 !important;
    background: #111b3c;
  }

  .left-actions .dark-btn .mini-icon {
    width: clamp(16px, 0.9375vw, 24px);
    height: clamp(16px, 0.9375vw, 24px);
  }

  .left-actions .dark-btn svg path,
  .left-actions .dark-btn svg circle,
  .left-actions .dark-btn svg rect {
    stroke: #fff;
  }

  .account-table {
    width: calc(100% - clamp(180px, 9.27734375vw, 238px)) !important;
    margin: 0 0 0 clamp(180px, 9.27734375vw, 238px) !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: clamp(10px, 0.46875vw, 12px) !important;
    overflow: hidden;
    background: #fff;
    box-shadow: none !important;
    table-layout: fixed;
  }

  .account-table th {
    height: clamp(24px, 1.5625vw, 40px);
    padding: 0 clamp(10px, 0.703125vw, 18px) clamp(10px, 0.546875vw, 14px);
    color: #adb2be;
    background: transparent;
    border: 0;
    font-size: clamp(12px, 0.703125vw, 18px);
    line-height: 1.1;
    font-weight: 400;
  }

  .account-table td {
    height: clamp(62px, 3.4375vw, 88px);
    padding: clamp(8px, 0.546875vw, 14px) clamp(10px, 0.703125vw, 18px);
    border-bottom: 1px solid #edf0f3;
    color: #263150;
    font-size: clamp(14px, 0.78125vw, 20px);
    line-height: 1.18;
    font-weight: 400;
    vertical-align: middle;
  }

  .account-table th:nth-child(1) { width: 14%; }
  .account-table th:nth-child(2) { width: 18%; }
  .account-table th:nth-child(3) { width: 37%; }
  .account-table th:nth-child(4) { width: 8%; }
  .account-table th:nth-child(5) { width: 12%; }
  .account-table th:nth-child(6) { width: 11%; }

  .account-table td:first-child {
    display: table-cell !important;
    gap: clamp(14px, 0.9765625vw, 25px);
  }

  .account-table .coin {
    width: clamp(30px, 1.6796875vw, 43px);
    height: clamp(30px, 1.6796875vw, 43px);
    margin-right: clamp(12px, 0.78125vw, 20px);
    vertical-align: middle;
  }

  .account-table b {
    display: inline-block;
    font-weight: 500;
    vertical-align: middle;
  }

  .account-table .single-account-name {
    white-space: nowrap;
  }

  .account-table .wrap-account-name span {
    display: block;
  }

  .account-table td:nth-child(3) {
    overflow-wrap: anywhere;
  }

  .account-table tbody tr:first-child td:first-child {
    border-top-left-radius: clamp(10px, 0.46875vw, 12px);
  }

  .account-table tbody tr:first-child td:last-child {
    border-top-right-radius: clamp(10px, 0.46875vw, 12px);
  }

  .account-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: clamp(10px, 0.46875vw, 12px);
  }

  .account-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: clamp(10px, 0.46875vw, 12px);
  }

  .account-table td:nth-child(3) small {
    display: block;
    margin-bottom: 3px;
    color: #8c99aa;
    font-size: clamp(11px, 0.5859375vw, 15px);
    font-weight: 400;
  }

  .accounts-page.info-open .currency-menu {
    display: none;
  }

  .account-info-panel {
    position: fixed;
    top: var(--topbar-h);
    right: 0;
    bottom: 0;
    width: clamp(330px, 19.53125vw, 420px);
    z-index: 8;
    padding: clamp(36px, 2.03125vw, 52px) clamp(26px, 1.5625vw, 40px) clamp(24px, 1.328125vw, 34px);
    overflow-y: auto;
    background: #e7ecef;
  }

  .account-info-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: clamp(20px, 1.09375vw, 28px);
    border-bottom: 1px solid #d2dbe1;
  }

  .account-info-panel h2 {
    margin: 0;
    color: #172242;
    font-size: clamp(20px, 1.015625vw, 26px);
    line-height: 1.1;
    font-weight: 700;
  }

  .account-info-panel header button {
    width: clamp(30px, 1.5625vw, 40px);
    height: clamp(30px, 1.5625vw, 40px);
    display: grid;
    place-items: center;
    border: 2px solid #aeb9c8;
    border-radius: 50%;
    color: #7f8998;
    background: transparent;
    font-size: clamp(20px, 1.015625vw, 26px);
    line-height: 1;
  }

  .account-info-item {
    position: relative;
    display: grid;
    gap: clamp(6px, 0.3125vw, 8px);
    padding: clamp(18px, 1.015625vw, 26px) clamp(34px, 1.640625vw, 42px) clamp(18px, 1.015625vw, 26px) 0;
    border-bottom: 1px solid #dce4e8;
  }

  .account-info-item span {
    color: #8ba5b5;
    font-size: clamp(12px, 0.5859375vw, 15px);
    line-height: 1.1;
    font-weight: 400;
  }

  .account-info-item strong {
    color: #172242;
    font-size: clamp(14px, 0.7421875vw, 19px);
    line-height: 1.14;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  .account-info-item button {
    position: absolute;
    right: 0;
    top: 50%;
    width: clamp(20px, 1.015625vw, 26px);
    height: clamp(20px, 1.015625vw, 26px);
    transform: translateY(-50%);
    border: 0;
    background: transparent;
  }

  .account-info-item .mini-icon {
    width: 100%;
    height: 100%;
  }

  .download-proof {
    width: 100%;
    min-height: clamp(48px, 2.5vw, 64px);
    margin-top: clamp(24px, 1.25vw, 32px);
    padding: 0 clamp(14px, 0.859375vw, 22px);
    border: 1px solid #b8c9de;
    border-radius: clamp(10px, 0.546875vw, 14px);
    color: #172242;
    background: #eef3f7;
    font-size: clamp(14px, 0.7421875vw, 19px);
    line-height: 1.1;
    font-weight: 400;
    text-align: left;
  }

  .copy,
  .ghost-eye {
    width: clamp(22px, 1.171875vw, 30px);
    height: clamp(22px, 1.171875vw, 30px);
    margin-left: clamp(8px, 0.46875vw, 12px);
    display: inline-grid;
    place-items: center;
    color: #9bb2c0;
    vertical-align: middle;
  }

  .copy .mini-icon,
  .ghost-eye .mini-icon {
    width: clamp(20px, 1.015625vw, 26px);
    height: clamp(20px, 1.015625vw, 26px);
  }

  .copy svg path,
  .copy svg circle,
  .copy svg rect,
  .ghost-eye svg path,
  .ghost-eye svg circle,
  .ghost-eye svg rect {
    stroke: #9fb5c5;
    stroke-width: 1.9;
  }

  .profile-page {
    min-height: calc(100vh - var(--topbar-h));
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) clamp(270px, 13.0859375vw, 335px) clamp(560px, 25.9375vw, 664px) minmax(220px, 1fr) !important;
    grid-template-rows: auto auto;
    column-gap: clamp(24px, 1.09375vw, 28px) !important;
    row-gap: clamp(36px, 2.109375vw, 54px);
    align-items: start;
    padding: clamp(24px, 1.328125vw, 34px) 0 clamp(80px, 4.6875vw, 120px) !important;
  }

  .profile-page h1 {
    grid-column: 3 !important;
    grid-row: 1;
    margin: 0;
    text-align: center;
  }

  .upload-logo {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch !important;
    width: auto !important;
    height: clamp(132px, 6.5234375vw, 167px) !important;
    gap: clamp(10px, 0.625vw, 16px);
    border: 1px dashed #75adff;
    background: #e8f1ff;
  }

  .upload-logo button {
    width: clamp(38px, 1.953125vw, 50px);
    height: clamp(38px, 1.953125vw, 50px);
    font-size: clamp(24px, 1.171875vw, 30px);
  }

  .upload-logo strong {
    font-size: clamp(13px, 0.703125vw, 18px);
    font-weight: 700;
  }

  .profile-card {
    grid-column: 3;
    grid-row: 2;
    min-height: clamp(560px, 29.3359375vw, 751px) !important;
    gap: clamp(24px, 1.328125vw, 34px) !important;
    padding: clamp(42px, 2.65625vw, 68px) clamp(54px, 3.125vw, 80px) !important;
    border-radius: clamp(10px, 0.46875vw, 12px) !important;
    box-shadow: none !important;
  }

  .profile-item span {
    margin-bottom: clamp(10px, 0.5078125vw, 13px) !important;
    color: #9aa3b3;
    font-size: clamp(13px, 0.703125vw, 18px) !important;
    font-weight: 400;
  }

  .profile-item strong {
    color: #24304f;
    font-size: clamp(15px, 0.78125vw, 20px) !important;
    line-height: 1.2;
    font-weight: 400 !important;
  }

  .profile-card p {
    color: #263150;
    font-size: clamp(12px, 0.625vw, 16px);
  }

  .transaction-page {
    grid-template-columns: minmax(920px, 1fr) clamp(420px, 23.4375vw, 600px) !important;
    gap: 0 !important;
    margin: calc(var(--page-top) * -1) calc(var(--page-x) * -1) calc(var(--page-bottom) * -1) calc(var(--page-x) * -1) !important;
    min-height: calc(100vh - var(--topbar-h)) !important;
    background: #f4f6f8;
  }

  .transaction-page .main-col {
    padding: clamp(70px, 3.90625vw, 100px) clamp(28px, 1.328125vw, 34px) clamp(80px, 4.6875vw, 120px) !important;
  }

  .transaction-page .button-row {
    display: grid !important;
    grid-template-columns: clamp(184px, 9.5703125vw, 245px) clamp(210px, 10.9375vw, 280px) minmax(0, 1fr) clamp(188px, 9.5703125vw, 245px) !important;
    gap: clamp(16px, 0.8984375vw, 23px) !important;
    align-items: center;
    margin-bottom: clamp(38px, 2.05078125vw, 52px) !important;
  }

  .transaction-page .button-row .dark-btn,
  .transaction-page .button-row .soft-btn {
    height: clamp(54px, 2.65625vw, 68px) !important;
    min-height: clamp(54px, 2.65625vw, 68px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 0.5859375vw, 15px);
    padding: 0 clamp(16px, 1.09375vw, 28px) !important;
    border-radius: clamp(10px, 0.546875vw, 14px) !important;
    font-size: clamp(15px, 0.78125vw, 20px) !important;
    font-weight: 400 !important;
  }

  .transaction-page .button-row .dark-btn .mini-icon,
  .transaction-page .button-row .soft-btn .mini-icon {
    width: clamp(19px, 0.8984375vw, 23px);
    height: clamp(19px, 0.8984375vw, 23px);
  }

  .transaction-page .button-row .dark-btn svg path,
  .transaction-page .button-row .dark-btn svg circle,
  .transaction-page .button-row .dark-btn svg rect {
    stroke: #fff;
  }

  .transaction-page .button-row .soft-btn {
    grid-column: 4;
    background: #e8f1ff;
    color: #0b72ff;
  }

  .transaction-page .soft-btn b {
    width: clamp(26px, 1.40625vw, 36px);
    height: clamp(26px, 1.40625vw, 36px);
    right: clamp(-14px, -0.46875vw, -8px);
    top: clamp(-16px, -0.546875vw, -8px);
    font-size: clamp(12px, 0.625vw, 16px);
  }

  .transaction-page h1 {
    grid-column: 3;
    margin: 0 !important;
    text-align: center;
  }

  .transaction-page .tx-table {
    display: table !important;
    width: 100%;
    margin-top: 0 !important;
    border-radius: clamp(10px, 0.46875vw, 12px) !important;
    table-layout: fixed;
    overflow: hidden;
    background: #fff;
  }

  .transaction-page thead th {
    padding: 0 clamp(9px, 0.546875vw, 14px) clamp(15px, 0.703125vw, 18px) !important;
    color: #a9aebb;
    background: transparent;
    border-bottom: 0;
    font-size: clamp(12px, 0.5859375vw, 15px) !important;
    line-height: 1.1;
    font-weight: 700 !important;
    text-align: left;
  }

  .transaction-page tbody td {
    height: clamp(76px, 3.90625vw, 100px);
    padding: clamp(14px, 0.703125vw, 18px) clamp(9px, 0.546875vw, 14px) !important;
    color: #263150;
    border-bottom: 1px solid #edf0f3;
    font-size: clamp(13px, 0.625vw, 16px) !important;
    line-height: 1.16;
    font-weight: 400;
    vertical-align: middle;
  }

  .transaction-page th:nth-child(1),
  .transaction-page td:nth-child(1) {
    width: 6.8% !important;
    padding-left: clamp(34px, 1.7578125vw, 45px) !important;
  }

  .transaction-page th:nth-child(2),
  .transaction-page td:nth-child(2) { width: 11.6% !important; }
  .transaction-page th:nth-child(3),
  .transaction-page td:nth-child(3) { width: 10.4% !important; }
  .transaction-page th:nth-child(4),
  .transaction-page td:nth-child(4) { width: 18.2% !important; }
  .transaction-page th:nth-child(5),
  .transaction-page td:nth-child(5) { width: 5.8% !important; }
  .transaction-page th:nth-child(6),
  .transaction-page td:nth-child(6) { width: 5.8% !important; }
  .transaction-page th:nth-child(7),
  .transaction-page td:nth-child(7) { width: 6.7% !important; }
  .transaction-page th:nth-child(8),
  .transaction-page td:nth-child(8) {
    width: 12.5% !important;
    white-space: normal !important;
  }
  .transaction-page th:nth-child(9),
  .transaction-page td:nth-child(9) { width: 9.1% !important; }
  .transaction-page th:last-child,
  .transaction-page td:last-child {
    width: 4.8% !important;
    padding-right: clamp(24px, 1.09375vw, 28px) !important;
  }

  .transaction-page .status-pill {
    min-width: clamp(88px, 4.9609375vw, 127px);
    min-height: clamp(38px, 1.9921875vw, 51px);
    justify-content: center;
    padding: 0 clamp(14px, 0.7421875vw, 19px);
    border-width: 1.5px;
    font-size: clamp(14px, 0.703125vw, 18px) !important;
  }

  .transaction-page .more {
    width: clamp(38px, 1.953125vw, 50px);
    height: clamp(30px, 1.5625vw, 40px);
    border: 1px solid #dce4ec;
    border-radius: clamp(7px, 0.3125vw, 8px);
    background: #fff;
    color: #b2bec9;
    font-size: clamp(14px, 0.703125vw, 18px);
    line-height: 1;
  }

  .transaction-page .export-row {
    justify-content: flex-end;
    gap: clamp(14px, 0.703125vw, 18px);
    margin-top: clamp(32px, 1.5625vw, 40px);
  }

  .transaction-page .export-row button {
    height: clamp(40px, 2.03125vw, 52px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.390625vw, 10px);
    padding: 0 clamp(14px, 0.7421875vw, 19px);
    border: 1px solid #c4d1e4;
    border-radius: clamp(9px, 0.46875vw, 12px);
    background: #fff;
    color: #263150;
    font-size: clamp(13px, 0.6640625vw, 17px);
    font-weight: 400;
    white-space: nowrap;
  }

  .transaction-page .export-row .mini-icon {
    width: clamp(20px, 0.9765625vw, 25px);
    height: clamp(20px, 0.9765625vw, 25px);
    filter: hue-rotate(-54deg) saturate(1.45);
  }

  .transaction-page .filters-panel {
    min-height: calc(100vh - var(--topbar-h));
    padding: clamp(108px, 5.3515625vw, 137px) clamp(48px, 2.65625vw, 68px) clamp(52px, 3.125vw, 80px) !important;
    background: #e7ecef;
  }

  .transaction-page .filters-panel h2 {
    margin: 0 0 clamp(28px, 1.71875vw, 44px) !important;
    color: #172242;
    font-size: clamp(23px, 1.25vw, 32px) !important;
    line-height: 1.1;
    font-weight: 500 !important;
  }

  .transaction-page .filters-panel label {
    display: block;
    margin: 0 0 clamp(22px, 1.171875vw, 30px) !important;
    color: #8ba5b5;
    font-size: clamp(13px, 0.6640625vw, 17px) !important;
    line-height: 1.15;
    font-weight: 400;
  }

  .transaction-page .filters-panel input,
  .transaction-page .filters-panel select {
    width: 100%;
    height: clamp(52px, 2.6171875vw, 67px) !important;
    margin-top: clamp(9px, 0.4296875vw, 11px) !important;
    padding: 0 clamp(16px, 0.859375vw, 22px);
    border: 1px solid #d9e1e8;
    border-radius: clamp(10px, 0.546875vw, 14px) !important;
    color: #25314f;
    background: #fff;
    font-size: clamp(15px, 0.78125vw, 20px) !important;
    font-weight: 400;
  }

  .transaction-page .filters-panel select {
    appearance: none;
    padding-right: clamp(38px, 2.03125vw, 52px);
  }

  .transaction-page .select-field {
    position: relative;
  }

  .transaction-page .select-field::after {
    content: "";
    position: absolute;
    right: clamp(18px, 1.015625vw, 26px);
    top: calc(clamp(13px, 0.6640625vw, 17px) * 1.15 + clamp(9px, 0.4296875vw, 11px) + (clamp(52px, 2.6171875vw, 67px) / 2));
    width: clamp(9px, 0.46875vw, 12px);
    height: clamp(9px, 0.46875vw, 12px);
    border-right: 2px solid #8ba5b5;
    border-bottom: 2px solid #8ba5b5;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
  }

  .transaction-page .date-field > span {
    width: 100%;
    height: clamp(52px, 2.6171875vw, 67px);
    margin-top: clamp(9px, 0.4296875vw, 11px);
    display: grid;
    grid-template-columns: clamp(34px, 1.7578125vw, 45px) minmax(0, 1fr);
    align-items: center;
    border: 1px solid #d9e1e8;
    border-radius: clamp(10px, 0.546875vw, 14px);
    background: #fff;
  }

  .transaction-page .date-field i {
    position: relative;
    justify-self: end;
    width: clamp(18px, 0.8984375vw, 23px);
    height: clamp(18px, 0.8984375vw, 23px);
    margin-right: clamp(8px, 0.4296875vw, 11px);
    border: 2px solid #8d8d8d;
    border-radius: 2px;
  }

  .transaction-page .date-field i::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: clamp(4px, 0.234375vw, 6px);
    border-top: 2px solid #8d8d8d;
  }

  .transaction-page .date-field i::after {
    content: "";
    position: absolute;
    left: clamp(3px, 0.1953125vw, 5px);
    right: clamp(3px, 0.1953125vw, 5px);
    top: -4px;
    height: 5px;
    border-left: 2px solid #8d8d8d;
    border-right: 2px solid #8d8d8d;
  }

  .transaction-page .date-field input {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 clamp(10px, 0.546875vw, 14px) 0 clamp(8px, 0.390625vw, 10px) !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
  }

  .transaction-page .two-fields {
    gap: clamp(18px, 1.09375vw, 28px) !important;
  }

  .transaction-page .check-row {
    display: flex !important;
    align-items: flex-start;
    gap: clamp(10px, 0.5078125vw, 13px);
    color: #111827 !important;
    font-size: clamp(13px, 0.78125vw, 20px) !important;
  }

  .transaction-page .check-row input {
    width: clamp(18px, 0.859375vw, 22px) !important;
    height: clamp(18px, 0.859375vw, 22px) !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d4d9de;
    border-radius: 3px !important;
    background: #fff;
  }

  .transaction-page .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(22px, 1.25vw, 32px);
    margin-top: clamp(22px, 1.25vw, 32px);
  }

  .transaction-page .filter-actions button {
    height: clamp(52px, 2.6171875vw, 67px);
    border-radius: clamp(10px, 0.546875vw, 14px);
    font-size: clamp(15px, 0.78125vw, 20px);
    font-weight: 400;
  }

  .transaction-page .filter-actions .clear-btn {
    border: 1px solid #ff8080;
    color: #ff4d4f;
    background: #fff1f1;
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  .accounts-page {
    padding-left: 110px !important;
    padding-right: 50px !important;
  }

  .left-actions {
    left: 24px !important;
  }

  .account-table {
    width: calc(100% - 220px) !important;
    margin-left: 220px !important;
  }

  .transaction-page {
    grid-template-columns: minmax(680px, 1fr) 380px !important;
  }

  .transaction-page .main-col {
    overflow-x: auto;
  }

  .transaction-page .tx-table {
    min-width: 1020px;
  }

  .transaction-page .filters-panel {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .profile-page {
    grid-template-columns: minmax(60px, 1fr) 260px minmax(520px, 620px) minmax(60px, 1fr) !important;
  }
}

/* Final desktop slimming pass: keep the real-platform geometry, but reduce the
   heavy account surfaces so the app matches the leaner reference capture. */
@media (min-width: 981px) {
  .portal {
    --sidebar-w: clamp(112px, 6.2vw, 172px);
    --topbar-h: clamp(104px, 5.8vw, 154px);
    --page-x: clamp(16px, 1.05vw, 28px);
    --page-top: clamp(48px, 3.65vw, 88px);
    --page-bottom: clamp(46px, 2.65vw, 68px);
  }

  .topbar {
    grid-template-columns:
      clamp(185px, 13vw, 300px)
      clamp(400px, 25vw, 610px)
      minmax(160px, 1fr)
      clamp(330px, 21vw, 520px) !important;
  }

  .brand-text {
    margin-top: clamp(30px, 2.25vw, 54px) !important;
    font-size: clamp(22px, 1.24vw, 30px) !important;
  }

  .quick-actions {
    gap: clamp(12px, 0.82vw, 18px) !important;
    padding-top: clamp(30px, 2.1vw, 50px) !important;
  }

  .action {
    width: clamp(130px, 8.4vw, 185px) !important;
    height: clamp(44px, 2.62vw, 58px) !important;
    font-size: clamp(14px, 0.76vw, 18px) !important;
  }

  .top-tools {
    gap: clamp(18px, 1.55vw, 36px) !important;
    padding-top: clamp(26px, 1.85vw, 44px) !important;
  }

  .top-tools button {
    min-width: clamp(48px, 3.25vw, 76px) !important;
    gap: 4px !important;
    font-size: clamp(13px, 0.88vw, 19px) !important;
  }

  .top-tools .mini-icon {
    width: clamp(24px, 1.35vw, 34px) !important;
    height: clamp(24px, 1.35vw, 34px) !important;
    min-width: clamp(24px, 1.35vw, 34px) !important;
  }

  .top-tools .activity {
    width: clamp(120px, 8.6vw, 176px) !important;
    min-width: clamp(120px, 8.6vw, 176px) !important;
    height: clamp(44px, 2.9vw, 62px) !important;
    border-radius: 12px !important;
    font-size: clamp(14px, 0.88vw, 19px) !important;
  }

  .side-menu button {
    height: clamp(66px, 4.65vw, 104px) !important;
    gap: 5px !important;
    font-size: clamp(13px, 0.88vw, 19px) !important;
  }

  .side-menu .mini-icon {
    width: clamp(25px, 1.62vw, 37px) !important;
    height: clamp(25px, 1.62vw, 37px) !important;
    min-width: clamp(25px, 1.62vw, 37px) !important;
  }

  .accounts-page h1,
  .center-page h1,
  .savings-page h1,
  .exchange-page h1,
  .flow-page h1,
  .profile-page h1,
  .split-page h1,
  .admin-page h1 {
    font-size: clamp(24px, 1.08vw, 30px) !important;
  }

  .dark-btn,
  .soft-btn,
  .white-btn,
  .clear-btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
  }

  input,
  select {
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
  }

  .accounts-page {
    padding: clamp(0px, 0.18vw, 5px) clamp(48px, 4.2vw, 102px) clamp(54px, 3.6vw, 92px) clamp(86px, 4.8vw, 124px) !important;
  }

  .accounts-page h1 {
    margin: clamp(18px, 1.18vw, 30px) 0 clamp(36px, 2.1vw, 54px) !important;
  }

  .currency-menu {
    top: clamp(8px, 0.62vw, 16px) !important;
    right: clamp(44px, 4.2vw, 102px) !important;
    width: clamp(160px, 9vw, 224px) !important;
  }

  .currency-select {
    height: clamp(40px, 2.05vw, 52px) !important;
    font-size: clamp(13px, 0.68vw, 17px) !important;
  }

  .left-actions {
    top: clamp(88px, 4.35vw, 114px) !important;
    left: clamp(24px, 2.85vw, 74px) !important;
    gap: clamp(14px, 0.88vw, 22px) !important;
  }

  .left-actions .dark-btn {
    width: clamp(168px, 9.15vw, 224px) !important;
    height: clamp(44px, 2.18vw, 56px) !important;
    padding: 0 clamp(18px, 1.22vw, 31px) !important;
    font-size: clamp(13px, 0.68vw, 17px) !important;
  }

  .account-table {
    width: calc(100% - clamp(165px, 8.55vw, 218px)) !important;
    margin-left: clamp(165px, 8.55vw, 218px) !important;
  }

  .account-table th {
    height: clamp(22px, 1.22vw, 32px) !important;
    padding-bottom: clamp(8px, 0.42vw, 11px) !important;
    font-size: clamp(11px, 0.58vw, 14px) !important;
  }

  .account-table td {
    height: clamp(54px, 2.85vw, 72px) !important;
    padding: clamp(7px, 0.42vw, 11px) clamp(9px, 0.58vw, 15px) !important;
    font-size: clamp(12px, 0.68vw, 17px) !important;
  }

  .account-table .coin {
    width: clamp(26px, 1.36vw, 35px) !important;
    height: clamp(26px, 1.36vw, 35px) !important;
  }

  .profile-page {
    grid-template-columns: minmax(190px, 1fr) clamp(280px, 15.6vw, 330px) clamp(600px, 32vw, 680px) minmax(190px, 1fr) !important;
    row-gap: clamp(28px, 1.62vw, 42px) !important;
    align-content: start !important;
    padding-top: clamp(12px, 0.95vw, 24px) !important;
  }

  .upload-logo {
    height: clamp(126px, 6.4vw, 150px) !important;
  }

  .profile-card {
    min-height: clamp(496px, 25.4vw, 650px) !important;
    gap: clamp(19px, 1.08vw, 28px) !important;
    padding: clamp(34px, 2.2vw, 56px) clamp(42px, 2.65vw, 68px) !important;
  }

  .profile-item span {
    margin-bottom: clamp(7px, 0.42vw, 11px) !important;
    font-size: clamp(12px, 0.62vw, 16px) !important;
  }

  .profile-item strong {
    font-size: clamp(14px, 0.72vw, 18px) !important;
  }

  .transaction-page {
    grid-template-columns: minmax(860px, 1fr) clamp(360px, 20.2vw, 520px) !important;
  }

  .transaction-page .main-col {
    padding-top: clamp(52px, 3.05vw, 78px) !important;
  }

  .transaction-page .button-row .dark-btn,
  .transaction-page .button-row .soft-btn {
    height: clamp(46px, 2.3vw, 58px) !important;
    min-height: clamp(46px, 2.3vw, 58px) !important;
    font-size: clamp(13px, 0.68vw, 17px) !important;
  }

  .transaction-page h1 {
    margin-bottom: clamp(38px, 1.95vw, 50px) !important;
  }

  .transaction-page tbody td {
    height: clamp(62px, 3.15vw, 82px) !important;
    padding-top: clamp(10px, 0.55vw, 14px) !important;
    padding-bottom: clamp(10px, 0.55vw, 14px) !important;
    font-size: clamp(12px, 0.58vw, 15px) !important;
  }

  .transaction-page thead th {
    font-size: clamp(11px, 0.54vw, 14px) !important;
  }

  .transaction-page .filters-panel {
    padding: clamp(72px, 4.35vw, 112px) clamp(34px, 2.15vw, 56px) clamp(42px, 2.55vw, 66px) !important;
  }

  .transaction-page .filters-panel input,
  .transaction-page .filters-panel select,
  .transaction-page .date-field > span,
  .transaction-page .filter-actions button {
    height: clamp(44px, 2.2vw, 56px) !important;
  }

  .flow-page {
    grid-template-columns: minmax(290px, 360px) minmax(380px, 610px) !important;
    gap: clamp(20px, 1.25vw, 32px) !important;
  }

  .method-col {
    padding-top: clamp(72px, 4.2vw, 102px) !important;
  }

  .method-card {
    min-height: 78px !important;
    grid-template-columns: 46px 1fr 24px !important;
    margin-bottom: 16px !important;
    padding: 14px 16px !important;
  }

  .white-card {
    gap: 22px !important;
    margin-bottom: 22px !important;
    padding: 34px 44px !important;
  }

  .card-shell {
    width: min(900px, 100%) !important;
    min-height: 620px !important;
    padding: 24px 110px 48px !important;
  }

  .savings-page h2,
  .method-col h2,
  .filters-panel h2 {
    font-size: clamp(20px, 1.05vw, 26px) !important;
  }

  .plan-card {
    min-height: 218px !important;
    padding: 18px !important;
  }

  .chat {
    width: clamp(50px, 2.62vw, 64px) !important;
    height: clamp(50px, 2.62vw, 64px) !important;
  }
}

/* Transactions final fit pass: keep the title, controls, and table columns
   separated on real desktop/browser zoom widths. */
@media (min-width: 981px) {
  .transaction-page .button-row {
    grid-template-columns: clamp(170px, 9.1vw, 196px) clamp(196px, 10.4vw, 224px) minmax(170px, 1fr) clamp(170px, 9.1vw, 196px) !important;
    gap: clamp(12px, 0.8vw, 18px) !important;
    margin-bottom: clamp(28px, 1.8vw, 42px) !important;
  }

  .transaction-page h1,
  .transaction-page .button-row h1 {
    grid-column: 3 !important;
    align-self: center;
    margin: 0 !important;
    padding: 0 clamp(8px, 0.6vw, 14px);
    text-align: center;
    white-space: nowrap;
  }

  .transaction-page .button-row .soft-btn {
    grid-column: 4 !important;
  }

  .transaction-page .tx-table {
    margin-top: 0 !important;
  }

  .transaction-page .export-row .icon-statement {
    color: #16cdb8 !important;
    filter: none !important;
  }

  .transaction-page .export-row .icon-statement svg path,
  .transaction-page .export-row .icon-statement svg rect {
    stroke: #16cdb8 !important;
    stroke-width: 2.1 !important;
  }
}

@media (min-width: 981px) and (max-width: 1536px) {
  .transaction-page {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 24.5vw, 360px) !important;
  }

  .transaction-page .main-col {
    min-width: 0;
    overflow: visible !important;
    padding-left: clamp(18px, 1.55vw, 24px) !important;
    padding-right: clamp(18px, 1.55vw, 24px) !important;
  }

  .transaction-page .button-row {
    grid-template-columns: 132px 168px minmax(160px, 1fr) 150px !important;
  }

  .transaction-page .button-row .dark-btn,
  .transaction-page .button-row .soft-btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    font-size: 13px !important;
  }

  .transaction-page .button-row .dark-btn .mini-icon,
  .transaction-page .button-row .soft-btn .mini-icon {
    width: 17px !important;
    height: 17px !important;
  }

  .transaction-page .tx-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }

  .transaction-page thead th {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 11px !important;
    line-height: 1.08 !important;
  }

  .transaction-page thead th:nth-child(5),
  .transaction-page thead th:nth-child(6) {
    font-size: 9.5px !important;
    line-height: 1.02 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }

  .transaction-page tbody td {
    height: 58px !important;
    padding: 7px 7px !important;
    font-size: 12px !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .transaction-page th:nth-child(1),
  .transaction-page td:nth-child(1) {
    width: 8.5% !important;
    padding-left: 13px !important;
    padding-right: 4px !important;
    white-space: nowrap !important;
  }

  .transaction-page th:nth-child(2),
  .transaction-page td:nth-child(2) { width: 13.5% !important; }
  .transaction-page th:nth-child(3),
  .transaction-page td:nth-child(3) { width: 11.5% !important; }
  .transaction-page th:nth-child(4),
  .transaction-page td:nth-child(4) { width: 22% !important; }
  .transaction-page th:nth-child(5),
  .transaction-page td:nth-child(5) { width: 6% !important; }
  .transaction-page th:nth-child(6),
  .transaction-page td:nth-child(6) { width: 6% !important; }
  .transaction-page th:nth-child(7),
  .transaction-page td:nth-child(7) { width: 7.5% !important; }
  .transaction-page th:nth-child(8),
  .transaction-page td:nth-child(8) { width: 11.5% !important; }
  .transaction-page th:nth-child(9),
  .transaction-page td:nth-child(9) { width: 10% !important; }
  .transaction-page th:last-child,
  .transaction-page td:last-child {
    width: 4% !important;
    padding-left: 2px !important;
    padding-right: 8px !important;
  }

  .transaction-page .status-pill {
    min-width: 72px !important;
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .transaction-page .more {
    width: 27px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  .transaction-page .export-row {
    gap: 10px !important;
    margin-top: 26px !important;
  }

  .transaction-page .export-row button {
    height: 34px !important;
    padding: 0 12px !important;
    gap: 7px !important;
    font-size: 12.5px !important;
  }

  .transaction-page .filters-panel input,
  .transaction-page .filters-panel select {
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 13.5px !important;
  }

  .transaction-page .filters-panel {
    padding-left: 44px !important;
    padding-right: 44px !important;
  }

  .transaction-page .filters-panel label {
    margin-bottom: 18px !important;
    font-size: 12px !important;
  }

  .transaction-page .filters-panel input,
  .transaction-page .filters-panel select,
  .transaction-page .date-field > span {
    height: 38px !important;
    border-radius: 8px !important;
  }

  .transaction-page .select-field::after {
    top: calc(12px * 1.15 + 9px + 19px) !important;
  }

  .transaction-page .date-field > span {
    grid-template-columns: 28px minmax(0, 1fr) !important;
  }

  .transaction-page .date-field i {
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px !important;
  }

  .transaction-page .date-field input {
    padding-left: 6px !important;
    padding-right: 4px !important;
    font-size: 13.5px !important;
  }
}

/* Savings page final fit pass. */
@media (min-width: 981px) {
  .savings-page {
    padding: clamp(8px, 0.9vw, 22px) clamp(34px, 3.1vw, 78px) clamp(42px, 3vw, 76px) !important;
  }

  .savings-page h1 {
    margin: 0 0 clamp(26px, 1.75vw, 44px) !important;
  }

  .savings-page h2 {
    margin: clamp(18px, 1.2vw, 30px) 0 clamp(16px, 1vw, 24px) !important;
    font-size: clamp(20px, 1.15vw, 28px) !important;
    line-height: 1.15;
  }

  .plan-labels {
    grid-template-columns: 1fr clamp(250px, 18vw, 360px) !important;
    margin-bottom: clamp(12px, 0.75vw, 18px) !important;
    font-size: clamp(16px, 0.95vw, 24px) !important;
  }

  .plans {
    grid-template-columns: repeat(4, minmax(210px, 1fr)) !important;
    gap: clamp(14px, 1.05vw, 24px) !important;
  }

  .plan-card {
    min-height: clamp(160px, 10.6vw, 216px) !important;
    grid-template-columns: clamp(34px, 2.4vw, 52px) minmax(0, 1fr) clamp(88px, 7vw, 130px) !important;
    gap: clamp(9px, 0.7vw, 14px) !important;
    padding: clamp(14px, 1vw, 22px) !important;
    border-radius: 10px !important;
  }

  .plan-card > .coin {
    width: clamp(34px, 2.35vw, 52px) !important;
    height: clamp(34px, 2.35vw, 52px) !important;
  }

  .plan-card > strong {
    align-self: center;
    font-size: clamp(16px, 0.95vw, 22px) !important;
    line-height: 1.1;
  }

  .plan-card button {
    height: clamp(38px, 2.45vw, 52px) !important;
    border-radius: 9px !important;
    font-size: clamp(15px, 0.92vw, 21px) !important;
  }

  .plan-card hr {
    margin: clamp(8px, 0.55vw, 14px) 0 !important;
  }

  .plan-card div {
    grid-template-columns: clamp(28px, 1.6vw, 36px) 1fr !important;
    align-items: start;
    font-size: clamp(14px, 0.82vw, 19px) !important;
    line-height: 1.14;
  }

  .plan-card div > span {
    font-size: clamp(15px, 0.9vw, 20px) !important;
  }

  .plan-card p b {
    margin-top: 2px !important;
    font-size: clamp(16px, 0.95vw, 22px) !important;
    line-height: 1.08;
  }

  .savings-page .segmented {
    width: clamp(390px, 28vw, 560px) !important;
    height: clamp(46px, 3vw, 62px) !important;
    border-radius: 10px !important;
  }

  .savings-page .segmented button {
    font-size: clamp(16px, 0.95vw, 22px) !important;
  }

  .savings-page .empty-note {
    margin-top: clamp(42px, 4vw, 90px) !important;
    font-size: clamp(18px, 1.08vw, 26px) !important;
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  .plans {
    grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
  }
}

/* Invoices page fit pass: keep the right filter panel below the top bar and
   use the slimmer control sizing from the transaction page. */
@media (min-width: 981px) {
  .invoice-page {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 24.5vw, 414px) !important;
    gap: 0 !important;
    margin: calc(var(--page-top) * -1) calc(var(--page-x) * -1) calc(var(--page-bottom) * -1) calc(var(--page-x) * -1) !important;
    min-height: calc(100vh - var(--topbar-h)) !important;
    background: #f4f6f8;
  }

  .invoice-page .main-col {
    position: relative;
    min-width: 0;
    padding: clamp(76px, 4.2vw, 96px) clamp(28px, 2.2vw, 48px) clamp(80px, 4.7vw, 120px) !important;
  }

  .invoice-page h1 {
    margin: clamp(58px, 4.2vw, 88px) 0 0 !important;
    color: #121d3b;
    font-size: clamp(24px, 1.35vw, 32px) !important;
    line-height: 1.12;
    font-weight: 700 !important;
    text-align: center;
  }

  .invoice-page .main-col > .dark-btn,
  .invoice-page .invoice-actions .dark-btn {
    height: clamp(42px, 2.3vw, 54px) !important;
    min-height: clamp(42px, 2.3vw, 54px) !important;
    padding: 0 clamp(18px, 1.3vw, 28px) !important;
    border-radius: 8px !important;
    font-size: clamp(14px, 0.82vw, 18px) !important;
    font-weight: 600 !important;
    white-space: nowrap;
  }

  .invoice-page .main-col > .dark-btn {
    position: absolute;
    top: clamp(76px, 4.2vw, 96px);
    left: clamp(28px, 2.2vw, 48px);
  }

  .invoice-page .invoice-actions {
    position: absolute !important;
    top: clamp(76px, 4.2vw, 96px) !important;
    right: clamp(28px, 2.2vw, 48px) !important;
    display: flex;
    gap: clamp(12px, 0.9vw, 18px);
    margin: 0 !important;
  }

  .invoice-page .empty-note {
    margin-top: clamp(58px, 4.2vw, 96px) !important;
    color: #b5c8d2;
    font-size: clamp(20px, 1.2vw, 28px) !important;
    line-height: 1.2;
  }

  .invoice-page .filters-panel {
    min-height: calc(100vh - var(--topbar-h)) !important;
    padding: clamp(70px, 4.6vw, 104px) clamp(34px, 3.2vw, 54px) clamp(52px, 3.2vw, 76px) !important;
    border-radius: 0 !important;
    background: #e7ecef;
  }

  .invoice-page .filters-panel h2 {
    margin: 0 0 clamp(26px, 1.8vw, 38px) !important;
    color: #172242;
    font-size: clamp(22px, 1.25vw, 30px) !important;
    line-height: 1.1;
    font-weight: 500 !important;
  }

  .invoice-page .filters-panel label,
  .invoice-page .filters-panel select {
    display: block;
    margin: 0 0 clamp(18px, 1.35vw, 28px) !important;
    color: #8ba5b5;
    font-size: clamp(12px, 0.72vw, 16px) !important;
    line-height: 1.15;
    font-weight: 400;
  }

  .invoice-page .filters-panel input,
  .invoice-page .filters-panel select {
    width: 100%;
    height: clamp(38px, 2.4vw, 52px) !important;
    margin-top: clamp(7px, 0.55vw, 10px) !important;
    padding: 0 clamp(12px, 0.9vw, 18px) !important;
    border: 1px solid #d9e1e8;
    border-radius: 8px !important;
    background: #fff;
    color: #25314f;
    font-size: clamp(13.5px, 0.78vw, 18px) !important;
    font-weight: 400;
  }

  .invoice-page .filters-panel > select {
    appearance: none;
    margin-bottom: clamp(38px, 3.8vw, 72px) !important;
    background:
      linear-gradient(45deg, transparent 50%, #8ba5b5 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
      linear-gradient(135deg, #8ba5b5 50%, transparent 50%) calc(100% - 12px) 50% / 7px 7px no-repeat,
      #fff;
  }

  .invoice-page .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 1.4vw, 28px);
    margin-top: 0 !important;
  }

  .invoice-page .filter-actions button {
    height: clamp(42px, 2.7vw, 58px) !important;
    min-height: 0 !important;
    padding: 0 clamp(16px, 1.1vw, 24px) !important;
    border-radius: 8px !important;
    font-size: clamp(14px, 0.82vw, 18px) !important;
    font-weight: 600 !important;
  }

  .invoice-page .filter-actions .clear-btn {
    border: 1px solid #ff8b8b;
    color: #ff4d4f;
    background: #fff1f1;
  }
}

@media (min-width: 981px) and (max-width: 1536px) {
  .invoice-page .main-col {
    padding-top: 64px !important;
  }

  .invoice-page .main-col > .dark-btn,
  .invoice-page .invoice-actions {
    top: 64px !important;
  }

  .invoice-page h1 {
    margin-top: 64px !important;
  }

  .invoice-page .empty-note {
    margin-top: 46px !important;
  }

  .invoice-page .main-col > .dark-btn,
  .invoice-page .invoice-actions .dark-btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  .invoice-page .filters-panel {
    padding: 64px 42px 56px !important;
  }

  .invoice-page .filters-panel input,
  .invoice-page .filters-panel select {
    height: 38px !important;
    font-size: 13.5px !important;
  }

  .invoice-page .filter-actions button {
    height: 42px !important;
    font-size: 14px !important;
  }
}

/* Referral page final fit pass. */
@media (min-width: 981px) {
  .referral-page {
    grid-template-columns: clamp(280px, 20vw, 390px) minmax(360px, 1fr) clamp(150px, 12vw, 220px) !important;
    gap: clamp(36px, 3.1vw, 72px) !important;
    align-items: start;
    padding: clamp(8px, 0.9vw, 22px) clamp(18px, 1.4vw, 36px) clamp(44px, 3.1vw, 78px) !important;
  }

  .ref-left {
    gap: clamp(14px, 0.95vw, 22px) !important;
  }

  .ref-left .white-btn,
  .tier {
    width: min(100%, clamp(270px, 19vw, 370px)) !important;
    height: clamp(44px, 2.75vw, 58px) !important;
    min-height: clamp(44px, 2.75vw, 58px) !important;
    border-radius: 10px !important;
    font-size: clamp(14px, 0.85vw, 18px) !important;
  }

  .tier {
    padding: 0 clamp(14px, 0.95vw, 22px) !important;
  }

  .tier small {
    font-size: clamp(12px, 0.75vw, 16px) !important;
  }

  .ref-left h2 {
    width: min(100%, clamp(270px, 19vw, 370px));
    margin: clamp(8px, 0.55vw, 14px) 0 0 !important;
    font-size: clamp(18px, 1.08vw, 25px) !important;
    line-height: 1.18;
  }

  .amount-box,
  .bonus-box {
    width: min(100%, clamp(250px, 17.8vw, 345px)) !important;
    min-height: clamp(72px, 5.2vw, 108px) !important;
    grid-template-columns: clamp(34px, 2.35vw, 48px) 1fr !important;
    gap: clamp(10px, 0.8vw, 16px) !important;
    padding: clamp(14px, 1vw, 22px) clamp(18px, 1.45vw, 30px) !important;
    border-width: 2px !important;
    border-radius: 10px !important;
  }

  .bonus-box {
    grid-template-columns: clamp(34px, 2.35vw, 48px) 1fr clamp(24px, 1.7vw, 34px) !important;
  }

  .bonus-box.selected {
    border-width: 2px !important;
  }

  .amount-box .coin,
  .bonus-box .coin {
    width: clamp(34px, 2.35vw, 48px) !important;
    height: clamp(34px, 2.35vw, 48px) !important;
  }

  .amount-box strong,
  .bonus-box strong {
    font-size: clamp(16px, 0.95vw, 22px) !important;
    line-height: 1.12;
  }

  .amount-box strong span,
  .bonus-box span {
    margin-top: 2px;
    font-size: clamp(14px, 0.85vw, 19px) !important;
    line-height: 1.12;
  }

  .bonus-box i {
    width: clamp(24px, 1.75vw, 36px) !important;
    height: clamp(24px, 1.75vw, 36px) !important;
    border-width: 2px !important;
  }

  .ref-center h1 {
    margin-top: clamp(12px, 1.4vw, 28px) !important;
    font-size: clamp(28px, 1.65vw, 42px) !important;
    line-height: 1.12;
  }

  .ref-center .empty-note {
    margin-top: clamp(70px, 7vw, 150px) !important;
    font-size: clamp(18px, 1.2vw, 28px) !important;
  }

  .share-col {
    gap: clamp(22px, 1.7vw, 38px) !important;
  }

  .share-col .white-btn {
    width: min(100%, clamp(150px, 11.5vw, 220px)) !important;
    height: clamp(44px, 2.7vw, 58px) !important;
    min-height: clamp(44px, 2.7vw, 58px) !important;
    padding: 0 clamp(12px, 0.9vw, 18px) !important;
    border-radius: 10px !important;
    font-size: clamp(14px, 0.85vw, 18px) !important;
  }

  .share-col span {
    font-size: clamp(16px, 0.92vw, 22px) !important;
  }

  .share-col button:not(.white-btn) {
    width: clamp(42px, 3vw, 62px) !important;
    height: clamp(42px, 3vw, 62px) !important;
    font-size: clamp(14px, 0.88vw, 19px) !important;
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  .referral-page {
    grid-template-columns: minmax(250px, 320px) minmax(300px, 1fr) minmax(130px, 180px) !important;
    gap: 28px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .ref-center h1 {
    font-size: 28px !important;
  }
}

/* Cards page product-card pass. */
.card-product-image {
  width: min(100%, 394px);
  height: auto;
  display: block;
  margin: 0 auto 34px;
  border-radius: 20px;
}

@media (min-width: 981px) {
  .cards-page .card-shell {
    width: min(1050px, 100%) !important;
    min-height: auto !important;
    padding: clamp(24px, 1.8vw, 38px) clamp(80px, 6vw, 145px) clamp(42px, 3.4vw, 70px) !important;
  }

  .cards-page .tabs {
    gap: clamp(38px, 3vw, 70px) !important;
    margin-bottom: clamp(44px, 3.2vw, 64px) !important;
  }

  .cards-page .tabs button {
    height: clamp(46px, 3vw, 60px) !important;
    padding: 0 clamp(20px, 1.6vw, 34px);
    font-size: clamp(20px, 1.25vw, 30px) !important;
  }

  .cards-page .tabs .on {
    border-bottom-width: 3px !important;
  }

  .cards-page .card-product-image {
    width: clamp(250px, 19.25vw, 394px) !important;
    margin-bottom: clamp(34px, 2.6vw, 52px) !important;
  }

  .cards-page h2 {
    margin: 0 0 clamp(10px, 0.75vw, 16px);
    color: #111b3c;
    font-size: clamp(28px, 2vw, 44px);
    line-height: 1.1;
  }

  .cards-page .card-shell > p {
    color: #111b3c;
    font-size: clamp(18px, 1.2vw, 28px);
    line-height: 1.25;
  }

  .cards-page .wide-btn {
    height: clamp(58px, 4.4vw, 92px);
    margin-top: clamp(58px, 5vw, 100px) !important;
    border-radius: 12px !important;
    font-size: clamp(20px, 1.25vw, 30px) !important;
  }

  .cards-page .link-card {
    min-height: clamp(56px, 4.2vw, 86px) !important;
    margin-top: clamp(24px, 1.8vw, 36px) !important;
    border-radius: 12px !important;
    font-size: clamp(18px, 1.2vw, 28px) !important;
  }
}

@media (min-width: 981px) {
  .side-menu button[data-page="invoices"] .mini-icon,
  .side-menu button[data-page="referral"] .mini-icon,
  .side-menu button[data-page="savings"] .mini-icon {
    width: clamp(31px, 1.95vw, 45px) !important;
    height: clamp(31px, 1.95vw, 45px) !important;
    min-width: clamp(31px, 1.95vw, 45px) !important;
  }
}

:root {
  --brand-color: #111b3c;
  --brand-font-family: Roboto, Arial, sans-serif;
  --brand-font-weight: 760;
  --brand-login-size: 26px;
  --brand-text-min: 24px;
  --brand-text-fluid: 1.40625vw;
  --brand-text-max: 36px;
  --brand-cards-min: 19px;
  --brand-cards-fluid: 1.09375vw;
  --brand-cards-max: 28px;
}

.login-brand,
.loading-brand,
.brand-text,
.brand-name {
  color: var(--brand-color) !important;
  font-family: var(--brand-font-family) !important;
  font-weight: var(--brand-font-weight) !important;
  letter-spacing: 0 !important;
}

.login-brand,
.loading-brand {
  font-size: var(--brand-login-size) !important;
}

.brand-text {
  font-size: clamp(var(--brand-text-min), var(--brand-text-fluid), var(--brand-text-max)) !important;
}

.cards-title.brand-name {
  font-size: clamp(var(--brand-cards-min), var(--brand-cards-fluid), var(--brand-cards-max)) !important;
}

.brand-font-preview {
  display: grid;
  min-height: 58px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  background: #f7f9fb;
  color: var(--brand-color);
  font-family: var(--brand-font-family);
  font-weight: var(--brand-font-weight);
  font-size: var(--brand-login-size);
}

/* Side navigation icon normalization: every menu icon uses the same square. */
@media (min-width: 981px) {
  .side-menu .mini-icon,
  .side-menu button[data-page] .mini-icon,
  .side-menu button[data-page="invoices"] .mini-icon,
  .side-menu button[data-page="referral"] .mini-icon,
  .side-menu button[data-page="savings"] .mini-icon {
    width: clamp(29px, 1.72vw, 36px) !important;
    height: clamp(29px, 1.72vw, 36px) !important;
    min-width: clamp(29px, 1.72vw, 36px) !important;
  }

  .side-menu .mini-icon.image-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* Cards final compact/border pass. */
.card-product-image {
  overflow: hidden;
  border: 1px solid rgba(17, 27, 60, 0.08);
  box-shadow: 0 10px 22px rgba(17, 27, 60, 0.08);
}

.card-product-physical {
  background: #283140;
}

.card-product-virtual {
  background: #374c8e;
}

@media (min-width: 981px) {
  .cards-page {
    gap: clamp(18px, 1.3vw, 30px) !important;
  }

  .cards-page .card-shell {
    width: min(880px, 100%) !important;
    padding: clamp(20px, 1.4vw, 30px) clamp(58px, 4.4vw, 96px) clamp(32px, 2.4vw, 50px) !important;
    border-radius: 10px !important;
    background:
      repeating-linear-gradient(73deg, rgba(255, 255, 255, 0.96) 0 28px, rgba(244, 245, 246, 0.82) 29px 52px),
      #fff !important;
  }

  .cards-page .tabs {
    gap: clamp(32px, 2.4vw, 54px) !important;
    margin-bottom: clamp(30px, 2.2vw, 44px) !important;
  }

  .cards-page .tabs button {
    height: clamp(40px, 2.5vw, 52px) !important;
    padding: 0 clamp(16px, 1.2vw, 26px) !important;
    font-size: clamp(17px, 1.05vw, 24px) !important;
  }

  .cards-page .card-product-image {
    width: clamp(218px, 16.2vw, 320px) !important;
    margin-bottom: clamp(24px, 1.8vw, 36px) !important;
    border-radius: clamp(13px, 0.9vw, 18px) !important;
  }

  .cards-page h2 {
    margin-bottom: clamp(6px, 0.45vw, 10px) !important;
    font-size: clamp(24px, 1.55vw, 34px) !important;
  }

  .cards-page .card-shell > p {
    font-size: clamp(15px, 0.95vw, 21px) !important;
  }

  .cards-page .wide-btn {
    height: clamp(48px, 3.25vw, 66px) !important;
    min-height: clamp(48px, 3.25vw, 66px) !important;
    margin-top: clamp(36px, 3vw, 60px) !important;
    border-radius: 9px !important;
    font-size: clamp(16px, 1vw, 22px) !important;
  }

  .cards-page .link-card {
    min-height: clamp(46px, 3vw, 62px) !important;
    margin-top: clamp(18px, 1.25vw, 26px) !important;
    border-radius: 9px !important;
    font-size: clamp(15px, 0.95vw, 21px) !important;
  }
}

/* Cards page final slim pass: no card-face border, tighter whole page. */
.cards-page .card-product-image {
  border: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 981px) {
  .cards-page {
    gap: clamp(12px, 0.9vw, 22px) !important;
  }

  .cards-page h1 {
    font-size: clamp(22px, 1.05vw, 28px) !important;
  }

  .cards-page .card-shell {
    width: min(760px, 100%) !important;
    padding: clamp(16px, 1.05vw, 24px) clamp(46px, 3.3vw, 72px) clamp(26px, 1.85vw, 40px) !important;
    border-radius: 8px !important;
  }

  .cards-page .tabs {
    gap: clamp(26px, 1.9vw, 42px) !important;
    margin-bottom: clamp(22px, 1.6vw, 34px) !important;
  }

  .cards-page .tabs button {
    height: clamp(34px, 2.1vw, 44px) !important;
    padding: 0 clamp(12px, 0.9vw, 20px) !important;
    font-size: clamp(15px, 0.88vw, 20px) !important;
  }

  .cards-page .tabs .on {
    border-bottom-width: 2px !important;
  }

  .cards-page .card-product-image {
    width: clamp(190px, 13.5vw, 270px) !important;
    margin-bottom: clamp(20px, 1.35vw, 30px) !important;
    border-radius: clamp(10px, 0.72vw, 15px) !important;
  }

  .cards-page h2 {
    font-size: clamp(21px, 1.35vw, 29px) !important;
  }

  .cards-page .card-shell > p {
    font-size: clamp(14px, 0.82vw, 18px) !important;
  }

  .cards-page .wide-btn {
    height: clamp(42px, 2.65vw, 54px) !important;
    min-height: clamp(42px, 2.65vw, 54px) !important;
    margin-top: clamp(26px, 2.05vw, 42px) !important;
    border-radius: 8px !important;
    font-size: clamp(14px, 0.85vw, 18px) !important;
  }

  .cards-page .link-card {
    min-height: clamp(40px, 2.45vw, 50px) !important;
    margin-top: clamp(14px, 0.95vw, 20px) !important;
    border-radius: 8px !important;
    font-size: clamp(13px, 0.8vw, 17px) !important;
  }
}

/* Referral page screenshot layout/icon pass. */
@media (min-width: 981px) {
  .referral-page {
    grid-template-columns: clamp(500px, 32vw, 640px) minmax(430px, 1fr) clamp(180px, 12vw, 230px) !important;
    gap: clamp(34px, 3.2vw, 76px) !important;
    padding: clamp(8px, 0.8vw, 18px) clamp(28px, 2.2vw, 54px) clamp(44px, 3vw, 74px) !important;
  }

  .ref-top-actions {
    display: flex;
    align-items: center;
    gap: clamp(22px, 1.8vw, 42px);
    width: max-content;
    max-width: 100%;
    margin-bottom: clamp(8px, 0.65vw, 16px);
  }

  .ref-left {
    gap: clamp(14px, 0.9vw, 22px) !important;
  }

  .tier {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(9px, 0.6vw, 14px);
    width: clamp(275px, 15vw, 380px) !important;
    height: clamp(44px, 2.45vw, 58px) !important;
    min-height: clamp(44px, 2.45vw, 58px) !important;
    padding: 0 clamp(12px, 0.8vw, 20px) !important;
    border: 1px solid #bdcadc !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111b3c !important;
    box-shadow: none !important;
    white-space: nowrap;
  }

  .tier strong {
    font-size: clamp(13.5px, 0.8vw, 17px);
    font-weight: 800;
  }

  .tier small {
    margin: 0 !important;
    color: #111b3c !important;
    font-size: clamp(12.5px, 0.72vw, 15.5px) !important;
    font-style: italic;
    font-weight: 500;
  }

  .tier-info {
    display: grid;
    width: clamp(18px, 1.05vw, 24px);
    height: clamp(18px, 1.05vw, 24px);
    place-items: center;
    margin-left: auto;
    border-radius: 50%;
    background: #8aa7b6;
    color: #fff;
    font-size: clamp(12px, 0.72vw, 16px);
    font-weight: 800;
    line-height: 1;
  }

  .ref-qualify {
    width: clamp(190px, 11.2vw, 250px) !important;
    height: clamp(44px, 2.45vw, 58px) !important;
    min-height: clamp(44px, 2.45vw, 58px) !important;
    padding: 0 clamp(20px, 1.25vw, 30px) !important;
    justify-content: center;
    gap: clamp(18px, 1.3vw, 30px);
    border-color: #d7dfeb !important;
    border-radius: 10px !important;
    color: #111 !important;
    font-size: clamp(15px, 0.9vw, 20px) !important;
    font-weight: 520 !important;
  }

  .ref-qualify .arrow {
    font-size: clamp(19px, 1.15vw, 24px);
    line-height: 1;
  }

  .ref-left h2 {
    width: clamp(250px, 17vw, 340px) !important;
    margin: clamp(5px, 0.4vw, 10px) 0 0 !important;
    font-size: clamp(18px, 1.05vw, 24px) !important;
    line-height: 1.13;
  }

  .amount-box,
  .bonus-box {
    width: clamp(260px, 15vw, 340px) !important;
    min-height: clamp(72px, 4.8vw, 106px) !important;
    padding: clamp(14px, 0.9vw, 20px) clamp(22px, 1.4vw, 32px) !important;
    border-radius: 9px !important;
  }

  .amount-box {
    border: 2px solid #39d0a3 !important;
    background: #e5f8f1 !important;
  }

  .bonus-box {
    grid-template-columns: clamp(34px, 2vw, 45px) 1fr clamp(26px, 1.55vw, 34px) !important;
    border: 1px solid #d8e1ec !important;
    background: #fff !important;
  }

  .bonus-box.selected {
    border: 2px solid #39d0a3 !important;
  }

  .amount-box .coin,
  .bonus-box .coin {
    width: clamp(34px, 2vw, 45px) !important;
    height: clamp(34px, 2vw, 45px) !important;
  }

  .amount-box strong,
  .bonus-box strong {
    font-size: clamp(15px, 0.88vw, 20px) !important;
  }

  .amount-box strong span,
  .bonus-box span {
    font-size: clamp(14px, 0.82vw, 18px) !important;
  }

  .bonus-box i {
    position: relative;
    width: clamp(24px, 1.45vw, 32px) !important;
    height: clamp(24px, 1.45vw, 32px) !important;
    border: 1.5px solid #d8e1ec !important;
    background: #fff !important;
  }

  .bonus-box.selected i::after {
    content: "";
    position: absolute;
    inset: clamp(6px, 0.4vw, 8px);
    border-radius: 50%;
    background: #39d0a3;
  }

  .ref-center h1 {
    margin-top: clamp(8px, 1vw, 24px) !important;
    text-align: center;
    font-size: clamp(28px, 1.55vw, 38px) !important;
    line-height: 1.1;
  }

  .ref-center .empty-note {
    margin-top: clamp(82px, 7vw, 150px) !important;
    color: #b7cbd6 !important;
    font-size: clamp(18px, 1.1vw, 26px) !important;
  }

  .share-col {
    align-items: center;
    justify-items: center;
    gap: clamp(26px, 2vw, 48px) !important;
  }

  .share-col .copy-invite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(7px, 0.55vw, 12px);
    width: clamp(175px, 10.5vw, 220px) !important;
    height: clamp(46px, 2.7vw, 58px) !important;
    min-height: clamp(46px, 2.7vw, 58px) !important;
    padding: 0 clamp(12px, 0.75vw, 18px) !important;
    border: 1px solid #d7dfeb !important;
    border-radius: 10px !important;
    color: #111b3c !important;
    font-size: clamp(14px, 0.82vw, 18px) !important;
    font-weight: 520 !important;
    white-space: nowrap;
  }

  .copy-invite .mini-icon {
    width: clamp(20px, 1.1vw, 24px) !important;
    height: clamp(20px, 1.1vw, 24px) !important;
    color: #1769ff;
  }

  .copy-invite .social-icon {
    width: clamp(20px, 1.1vw, 24px) !important;
    height: clamp(20px, 1.1vw, 24px) !important;
    display: block;
    object-fit: contain;
  }

  .share-col > span {
    color: #98a5b8 !important;
    font-size: clamp(14px, 0.82vw, 18px) !important;
    font-weight: 500;
  }

  .share-col .share-button,
  .share-col button.share-button:not(.white-btn) {
    display: grid;
    width: clamp(50px, 3.1vw, 64px) !important;
    height: clamp(50px, 3.1vw, 64px) !important;
    place-items: center;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #bdc7d8 !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }

  .share-button .mini-icon {
    width: clamp(26px, 1.65vw, 36px) !important;
    height: clamp(26px, 1.65vw, 36px) !important;
    color: inherit;
  }

  .share-button .social-icon {
    width: clamp(26px, 1.65vw, 36px) !important;
    height: clamp(26px, 1.65vw, 36px) !important;
    display: block;
    object-fit: contain;
  }

  .share-button .mini-icon svg * {
    stroke-width: 2.1;
  }

  .share-button.facebook .mini-icon svg path {
    stroke-width: 1.9;
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  .referral-page {
    grid-template-columns: minmax(430px, 500px) minmax(300px, 1fr) minmax(155px, 190px) !important;
    gap: 24px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .ref-top-actions {
    gap: 18px;
  }

  .tier {
    width: 260px !important;
  }

  .ref-qualify {
    width: 170px !important;
  }
}

/* Backend management mode: table first, modal edit flow like the reference video. */
.backend-admin {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #333;
}

.backend-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 36px;
  margin: -34px -28px 0;
  padding-left: 0;
  border-bottom: 1px solid #d6d6d6;
  background: #f4f4f4;
}

.backend-tabs button {
  min-height: 36px;
  padding: 0 32px;
  border: 0;
  border-right: 1px solid #d8d8d8;
  border-radius: 0;
  background: #efefef;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.backend-tabs button.active {
  background: #fff;
}

.backend-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  margin: 0 -28px;
  padding: 7px 18px;
  background: #fff;
  color: #666;
  font-size: 12px;
}

.backend-frontend-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #555;
  font-size: 12px;
}

.backend-frontend-picker select {
  min-width: 260px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  background: #fff;
  color: #333;
}

.backend-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 0 -28px 28px;
  padding: 10px 18px;
  border-top: 1px solid #ececec;
  background: #f2f2f2;
}

.backend-green,
.backend-red,
.backend-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.backend-green {
  background: #10c51d;
}

.backend-red {
  background: #ff5252;
}

.backend-blue {
  min-height: 28px;
  padding: 0 12px;
  background: #48bde6;
  font-size: 12px;
}

.backend-green .mini-icon,
.backend-red .mini-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.backend-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1e1e1;
  background: #fff;
}

.backend-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
  color: #555;
  font-size: 13px;
}

.backend-table th,
.backend-table td {
  height: 38px;
  padding: 8px 14px;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e7e7e7;
  text-align: left;
  vertical-align: middle;
}

.backend-table th {
  background: #f1f1f1;
  color: #555;
  font-weight: 700;
}

.backend-table tr:hover td {
  background: #f5f5f5;
}

.backend-table td:first-child,
.backend-table th:first-child {
  width: 42px;
  text-align: center;
}

.backend-table td:nth-child(2),
.backend-table th:nth-child(2) {
  width: 58px;
  text-align: center;
}

.transaction-admin-table td:nth-child(3),
.transaction-admin-table th:nth-child(3) {
  width: 72px;
  text-align: center;
}

.backend-table strong,
.backend-table small {
  display: block;
}

.backend-table small {
  margin-top: 3px;
  color: #8b8b8b;
  font-size: 11px;
}

.backend-table .coin {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.backend-row-actions {
  width: 92px;
  text-align: center !important;
  white-space: nowrap;
}

.backend-manage-actions {
  white-space: nowrap;
}

.backend-manage-actions .backend-blue + .backend-blue {
  margin-left: 8px;
}

.frontend-admin-table {
  min-width: 1500px;
}

.frontend-row-manage {
  min-width: 280px;
}

.frontend-row-manage .backend-blue {
  min-width: 76px;
}

.login-code-cell {
  min-width: 128px;
  color: #222;
  line-height: 1.25;
}

.login-code-cell strong {
  color: #176bff;
  font-size: 15px;
  letter-spacing: 0;
}

.login-code-cell.verified strong {
  color: #14a66a;
}

.login-code-cell.muted {
  color: #999;
  font-size: 12px;
}

.frontend-manager {
  top: 6vh;
  width: min(1500px, calc(100vw - 70px));
  max-height: 88vh;
}

.frontend-manager-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #dedede;
  background: #f5f5f5;
}

.frontend-manager-tabs button {
  min-width: 180px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #dedede;
  background: transparent;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.frontend-manager-tabs button.active {
  background: #fff;
  color: #162140;
}

.frontend-manager-toolbar {
  display: flex;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8e8e8;
  background: #f7f7f7;
}

.frontend-manager-body {
  padding: 14px;
}

.backend-row-actions button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin: 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
}

.backend-row-actions .mini-icon {
  width: 17px;
  height: 17px;
  color: currentColor;
}

.transaction-admin-table {
  min-width: 1680px;
}

.settings-admin-table {
  min-width: 720px;
}

.backend-dim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
}

.backend-editor {
  position: fixed;
  top: 12vh;
  left: 50%;
  z-index: 91;
  width: min(900px, calc(100vw - 120px));
  max-height: 80vh;
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid #bdbdbd;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.backend-editor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #dedede;
  background: #fff;
  color: #333;
  font-size: 13px;
}

.backend-editor header button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 20px;
  line-height: 1;
}

.backend-editor .save-floating {
  position: sticky;
  top: 54px;
  left: 18px;
  z-index: 2;
  margin: 12px 0 0 18px;
  min-height: 32px;
}

.backend-editor-body {
  display: grid;
  gap: 14px;
  width: min(520px, 72%);
  margin: 10px auto 42px;
}

.backend-editor-body label,
.backend-radio {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #333;
  font-size: 13px;
}

.backend-editor-body input,
.backend-editor-body select,
.backend-editor-body textarea {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font: inherit;
}

.backend-editor-body textarea {
  min-height: 64px;
  resize: vertical;
}

.backend-radio {
  margin: 0;
  padding: 0;
  border: 0;
}

.backend-radio legend {
  display: contents;
}

.backend-radio label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
}

.backend-radio input {
  width: auto;
  min-height: 0;
}

@media (max-width: 980px) {
  .backend-tabs,
  .backend-location,
  .backend-toolbar {
    margin-left: -16px;
    margin-right: -16px;
  }

  .backend-editor {
    top: 6vh;
    width: calc(100vw - 28px);
  }

  .backend-editor-body {
    width: calc(100% - 32px);
  }

  .backend-editor-body label,
  .backend-radio {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Dashboard latest transactions: keep Date values on one line. */
.latest-table th:nth-child(1),
.latest-table td:nth-child(1) {
  width: 20% !important;
  min-width: 170px;
  white-space: nowrap !important;
}

.latest-table th:nth-child(3) {
  width: 28% !important;
}

.latest-table th:nth-child(5) {
  width: 9% !important;
}

/* Transactions page: the white rounded frame starts below the ID header row. */
.transaction-page .tx-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.transaction-page .tx-table thead th {
  background: transparent !important;
  border-bottom: 0 !important;
}

.transaction-page .tx-table tbody td {
  background: #fff !important;
}

.transaction-page .tx-table tbody tr:first-child td:first-child {
  border-top-left-radius: 12px;
}

.transaction-page .tx-table tbody tr:first-child td:last-child {
  border-top-right-radius: 12px;
}

.transaction-page .tx-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.transaction-page .tx-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Accounts page: keep the column header row outside the white rounded frame. */
.accounts-page .account-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.accounts-page .account-table thead th {
  background: transparent !important;
  border-bottom: 0 !important;
}

.accounts-page .account-table tbody td {
  background: #fff !important;
}

.accounts-page .account-table tbody tr:first-child td:first-child {
  border-top-left-radius: 12px;
}

.accounts-page .account-table tbody tr:first-child td:last-child {
  border-top-right-radius: 12px;
}

.accounts-page .account-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.accounts-page .account-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Frontend adaptive-width safety pass: content should size to its text first,
   then scroll horizontally when the viewport is too narrow. This prevents
   table text, action buttons, and white row frames from overlapping. */
.content {
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: auto;
}

.main-col,
.accounts-page,
.flow-page,
.form-col,
.method-col,
.center-page,
.profile-page,
.savings-page {
  min-width: 0;
}

.white-card,
.profile-card,
.chart-card,
.card-shell,
.method-card,
.plan-card {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-select > div,
.method-card,
.plan-card,
.account-line {
  min-width: 0;
}

.account-select p,
.account-select strong,
.account-select span,
.method-card strong,
.method-card p,
.plan-card strong,
.plan-card p,
.account-line strong,
.account-line span,
.account-line b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.transaction-page .main-col,
.accounts-page {
  overflow-x: auto !important;
  overflow-y: visible;
}

.transaction-page .tx-table,
.accounts-page .account-table {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}

.transaction-page .tx-table th,
.transaction-page .tx-table td,
.accounts-page .account-table th,
.accounts-page .account-table td {
  width: auto !important;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.transaction-page .tx-table th:nth-child(1),
.transaction-page .tx-table td:nth-child(1) {
  min-width: 86px;
  white-space: nowrap !important;
}

.transaction-page .tx-table th:nth-child(2),
.transaction-page .tx-table td:nth-child(2) {
  min-width: 150px;
  white-space: nowrap !important;
}

.transaction-page .tx-table th:nth-child(3),
.transaction-page .tx-table td:nth-child(3) {
  min-width: 150px;
}

.transaction-page .tx-table th:nth-child(4),
.transaction-page .tx-table td:nth-child(4) {
  min-width: 280px;
  max-width: 360px;
}

.transaction-page .tx-table th:nth-child(5),
.transaction-page .tx-table td:nth-child(5),
.transaction-page .tx-table th:nth-child(6),
.transaction-page .tx-table td:nth-child(6) {
  min-width: 118px;
}

.transaction-page .tx-table th:nth-child(7),
.transaction-page .tx-table td:nth-child(7) {
  min-width: 138px;
}

.transaction-page .tx-table th:nth-child(8),
.transaction-page .tx-table td:nth-child(8) {
  min-width: 164px;
  white-space: nowrap !important;
}

.transaction-page .tx-table th:nth-child(9),
.transaction-page .tx-table td:nth-child(9) {
  min-width: 132px;
  white-space: nowrap !important;
}

.transaction-page .tx-table th:nth-child(10),
.transaction-page .tx-table td:nth-child(10) {
  min-width: 58px;
  white-space: nowrap !important;
}

.accounts-page .account-table th:nth-child(1),
.accounts-page .account-table td:nth-child(1) {
  min-width: 150px;
  white-space: nowrap !important;
}

.accounts-page .account-table th:nth-child(2),
.accounts-page .account-table td:nth-child(2) {
  min-width: 190px;
}

.accounts-page .account-table th:nth-child(3),
.accounts-page .account-table td:nth-child(3) {
  min-width: 320px;
  max-width: 520px;
}

.accounts-page .account-table th:nth-child(4),
.accounts-page .account-table td:nth-child(4) {
  min-width: 96px;
  white-space: nowrap !important;
}

.accounts-page .account-table th:nth-child(5),
.accounts-page .account-table td:nth-child(5) {
  min-width: 155px;
  white-space: nowrap !important;
}

.accounts-page .account-table th:nth-child(6),
.accounts-page .account-table td:nth-child(6) {
  min-width: 124px;
  white-space: nowrap !important;
}

.transaction-page .status-pill,
.transaction-page .more,
.accounts-page .copy,
.accounts-page .ghost-eye {
  flex: none;
  white-space: nowrap;
}

.transaction-page .export-row {
  flex-wrap: wrap;
}

.transaction-page .export-row button {
  max-width: 100%;
}

.account-info-panel {
  width: clamp(360px, 28vw, 560px) !important;
  max-width: min(92vw, 560px);
}

.account-info-item {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
}

.account-info-item strong {
  min-width: 0;
  padding-right: 8px;
  overflow-wrap: anywhere;
}

.account-info-item button {
  position: static !important;
  align-self: center;
  grid-column: 2;
  grid-row: 1 / span 2;
  transform: none !important;
}

@media (max-width: 980px) {
  .content {
    overflow-x: auto !important;
  }

  .transaction-page,
  .split-page {
    grid-template-columns: minmax(760px, max-content) minmax(300px, 360px) !important;
  }

  .accounts-page .account-table {
    margin-left: 0 !important;
  }
}

/* Final responsive guards: keep long frontend branding and wide transaction tables from overlapping adjacent panels. */
@media (min-width: 981px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(300px, auto) !important;
    column-gap: 24px !important;
    overflow: hidden;
  }

  .brand-text {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: var(--brand-text-max) !important;
  }

  .quick-actions {
    grid-column: 2 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .quick-actions .action {
    width: 170px !important;
    min-width: 0 !important;
    padding-inline: 18px !important;
  }

  .top-tools {
    grid-column: 3 !important;
    min-width: 0 !important;
  }

  .transaction-page {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px) !important;
    overflow: hidden;
  }

  .transaction-page .main-col {
    min-width: 0 !important;
    overflow: hidden;
  }

  .transaction-page .tx-table-wrap {
    width: 100%;
    max-width: 100%;
    margin-top: 62px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 12px;
    background: #fff;
  }

  .transaction-page .tx-table {
    width: 100% !important;
    min-width: 1120px;
    margin-top: 0 !important;
    table-layout: fixed !important;
  }

  .transaction-page thead th,
  .transaction-page tbody td {
    padding-right: 10px !important;
    padding-left: 10px !important;
    overflow-wrap: anywhere;
  }

  .transaction-page th:nth-child(1),
  .transaction-page td:nth-child(1) {
    width: 8% !important;
    padding-left: 18px !important;
  }

  .transaction-page th:nth-child(2),
  .transaction-page td:nth-child(2) {
    width: 15% !important;
    white-space: nowrap !important;
  }

  .transaction-page th:nth-child(3),
  .transaction-page td:nth-child(3) {
    width: 14% !important;
  }

  .transaction-page th:nth-child(4),
  .transaction-page td:nth-child(4) {
    width: 24% !important;
    min-width: 0 !important;
  }

  .transaction-page th:nth-child(5),
  .transaction-page td:nth-child(5),
  .transaction-page th:nth-child(6),
  .transaction-page td:nth-child(6) {
    width: 7% !important;
  }

  .transaction-page th:nth-child(7),
  .transaction-page td:nth-child(7) {
    width: 10% !important;
  }

  .transaction-page th:nth-child(8),
  .transaction-page td:nth-child(8) {
    width: 12% !important;
    white-space: normal !important;
  }

  .transaction-page th:nth-child(9),
  .transaction-page td:nth-child(9) {
    width: 10% !important;
  }

  .transaction-page th:last-child,
  .transaction-page td:last-child {
    width: 4% !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 1320px) and (min-width: 981px) {
  .brand-text {
    font-size: 30px !important;
  }

  .quick-actions .action {
    width: 148px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    height: auto !important;
    min-height: 74px;
    padding: 16px 14px !important;
    overflow: hidden;
  }

  .brand-text {
    grid-column: 1 !important;
    margin: 0 !important;
    max-width: 36vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .quick-actions {
    grid-column: 2 !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quick-actions::-webkit-scrollbar {
    display: none;
  }

  .quick-actions .action {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 76px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .quick-actions .mini-icon {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
  }

  .top-tools {
    grid-column: 1 / -1 !important;
    justify-self: stretch;
  }
}

@media (min-width: 981px) {
  .topbar {
    grid-template-columns: max-content max-content minmax(0, 1fr) minmax(300px, auto) !important;
    column-gap: 24px !important;
  }

  .brand-text {
    grid-column: 1 !important;
    width: auto !important;
    max-width: min(34vw, 560px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .quick-actions {
    grid-column: 2 !important;
    justify-self: start !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 18px !important;
  }

  .quick-actions .action {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 180px !important;
    padding: 0 28px !important;
    white-space: nowrap !important;
  }

  .top-tools {
    grid-column: 4 !important;
    justify-self: end !important;
  }
}

@media (max-width: 1320px) and (min-width: 981px) {
  .quick-actions {
    gap: 12px !important;
  }

  .quick-actions .action {
    min-width: 148px !important;
    padding: 0 20px !important;
  }
}
