:root {
  color-scheme: light;
  --brand: #ef233c;
  --brand-dark: #c91832;
  --blue: #2563eb;
  --blue-dark: #1747b0;
  --green: #09855c;
  --red: #d92d48;
  --amber: #b76a00;
  --ink: #142c3f;
  --muted: #63788a;
  --line: #d8e1e8;
  --panel: #f3f7fa;
  --soft-blue: #edf5ff;
  --white: #ffffff;
  --footer: #425f73;
  --shadow: 0 8px 22px rgba(30, 56, 75, 0.08);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--white);
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
}

.page-width {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.admin-width {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 64px;
  border-bottom: 1px solid #e4eaef;
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #07558d;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 6px;
}

.home-main {
  flex: 1;
}

.query-section {
  padding-block: 58px 42px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: #3b7399;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.query-section h1,
.admin-topline h1,
.login-heading h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.query-description {
  margin: 10px auto 22px;
  color: var(--muted);
}

.address-search {
  width: min(730px, 100%);
  height: 48px;
  margin: 0 auto;
  display: flex;
  border: 1px solid #c9d5df;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(34, 70, 96, 0.06);
}

.address-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.address-search input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button,
.admin-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.primary-button {
  padding: 0 18px;
  color: var(--white);
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button img {
  filter: brightness(0) invert(1);
}

.search-button {
  min-width: 100px;
  height: 100%;
  border-radius: 0;
  font-size: 15px;
}

.secondary-button {
  padding: 0 15px;
  border-color: #cbd7df;
  color: #315a76;
  background: var(--white);
}

.secondary-button:hover {
  border-color: #86a7bd;
  background: #f6f9fb;
}

.compact-button {
  min-height: 34px;
  padding-inline: 12px;
}

.text-button {
  min-height: 32px;
  padding: 0 4px;
  color: var(--blue);
  background: transparent;
}

.text-button:hover {
  color: var(--blue-dark);
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-color: #d2dde5;
  background: var(--white);
}

.icon-button:hover {
  border-color: #86a7bd;
  background: #f6f9fb;
}

.field-error {
  min-height: 21px;
  margin: 7px auto 0;
  color: var(--red);
  font-size: 13px;
}

.mode-notice,
.data-notice {
  width: fit-content;
  max-width: 100%;
  margin: 5px auto 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #f2cf8b;
  border-radius: 5px;
  color: #885200;
  background: #fff8e8;
  font-size: 12px;
  text-align: left;
}

.price-panel {
  margin-top: 26px;
  padding: 20px 24px 16px;
  background: var(--panel);
  border-top: 1px solid #e3ebf0;
  border-bottom: 1px solid #e3ebf0;
}

.price-grid {
  width: min(640px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
}

.price-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 27px 52px minmax(70px, 1fr) 16px;
  align-items: center;
  text-align: left;
}

.price-item strong {
  text-align: right;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.coin-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
}

.coin-usdt {
  background: #1fa47a;
}

.coin-btc {
  background: #f7931a;
}

.coin-trx {
  background: var(--brand);
}

.coin-eth {
  background: #5c6bc0;
}

.currency-unit {
  padding-left: 5px;
  color: #365b73;
}

.price-source {
  margin: 13px 0 0;
  color: #8696a3;
  font-size: 12px;
}

.service-band {
  padding-block: 32px 46px;
  border-top: 1px solid #ecf0f3;
  background: #f4f8fb;
}

.section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 168px;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8ed;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #9ab4c6;
  box-shadow: 0 10px 25px rgba(30, 56, 75, 0.12);
}

.service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef5fa;
}

.service-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.service-card strong {
  color: #07558d;
  font-size: 14px;
}

.service-card > span:last-child {
  margin-top: 4px;
  color: #52718a;
  font-size: 12px;
}

.site-footer {
  margin-top: auto;
  min-height: 92px;
  color: #e9f2f8;
  background: var(--footer);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: #c9dae6;
  font-size: 12px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.support-link img {
  filter: brightness(0) invert(1);
}

.support-link[data-custom-icon="true"] img {
  filter: none;
  object-fit: contain;
}

.result-main {
  flex: 1;
  padding-block: 32px 46px;
}

.header-search {
  width: min(370px, 44%);
  height: 38px;
  display: flex;
  border: 1px solid #d2dde5;
  border-radius: 5px;
  overflow: hidden;
}

.header-search:focus-within {
  border-color: var(--blue);
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding-inline: 12px;
  border: 0;
  outline: 0;
}

.header-search .icon-button {
  height: 36px;
  border: 0;
  border-left: 1px solid #d2dde5;
  border-radius: 0;
}

.page-status {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.page-status.error {
  margin-top: 24px;
  border: 1px solid #f0b6bf;
  border-radius: 5px;
  color: var(--red);
  background: #fff4f5;
}

.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid #cbd9e2;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.wallet-overview {
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.wallet-heading {
  min-height: 126px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.wallet-identity {
  min-width: 0;
}

.address-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-line h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 18px;
}

.chain-label {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.wallet-qr {
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid #d6e0e7;
  border-radius: 5px;
  background: var(--white);
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.metric {
  min-width: 0;
  min-height: 82px;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  margin-top: 5px;
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.status-warning {
  color: var(--amber);
}

.status-normal {
  color: var(--green);
}

.transaction-section {
  margin-top: 22px;
}

.transaction-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.segmented-control {
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  border: 1px solid #cbd7df;
  border-radius: 5px;
  overflow: hidden;
}

.segment {
  min-width: 84px;
  padding-inline: 16px;
  border: 0;
  border-right: 1px solid #cbd7df;
  color: var(--blue);
  background: var(--white);
}

.segment:last-child {
  border-right: 0;
}

.segment.active {
  color: var(--white);
  background: var(--blue);
}

.filter-form {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7df;
  border-radius: 5px;
  outline: 0;
  background: var(--white);
}

input,
select {
  height: 38px;
  padding: 0 11px;
}

textarea {
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-form select {
  width: 126px;
}

.amount-range,
.date-range {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.amount-range input {
  width: 112px;
}

.date-range input {
  width: 139px;
}

.summary-line {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.summary-line p {
  margin: 0;
}

.summary-income {
  margin-left: 10px;
  color: var(--green);
}

.summary-expense {
  margin-left: 8px;
  color: var(--red);
}

.data-notice {
  width: 100%;
  margin: 0 0 10px;
  justify-content: flex-start;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  height: 42px;
  color: #36556b;
  background: #edf3f7;
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: #f8fafb;
}

tbody tr:hover {
  background: var(--soft-blue);
}

th:nth-child(1),
td:nth-child(1) {
  width: 165px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 260px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 72px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 110px;
}

th:nth-child(5),
td:nth-child(5),
th:nth-child(6),
td:nth-child(6) {
  width: 150px;
}

.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.amount-badge {
  min-width: 54px;
  display: inline-flex;
  justify-content: flex-end;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--white);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.amount-badge.income {
  background: var(--green);
}

.amount-badge.expense {
  background: var(--red);
}

.hash-link,
.address-link {
  color: #075db8;
}

.hash-link:hover,
.address-link:hover {
  text-decoration: underline;
}

.empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.empty-state img {
  opacity: 0.55;
}

.empty-state p {
  margin: 0;
}

.pagination {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-number,
.pagination-text-button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #c9d6df;
  border-radius: 4px;
  color: #3a566a;
  background: var(--white);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.page-number:hover:not(:disabled),
.pagination-text-button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.page-number.active {
  border-color: #239fce;
  color: var(--white);
  background: #239fce;
}

.page-number:disabled,
.pagination-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-ellipsis {
  min-width: 16px;
  color: var(--muted);
  text-align: center;
}

.jump-page-input {
  width: 44px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #c9d6df;
  border-radius: 4px;
  color: #243f55;
  background: var(--white);
  font: inherit;
  font-size: 13px;
  text-align: center;
}

.jump-page-input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(35, 159, 206, 0.16);
  outline-offset: 1px;
}

.admin-page {
  background: #f5f8fa;
}

.admin-main {
  flex: 1;
  padding-block: 42px 64px;
}

.login-panel {
  width: min(430px, 100%);
  margin: 48px auto;
  padding: 28px;
  border: 1px solid #dce5eb;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-panel label,
.admin-section label {
  display: grid;
  gap: 6px;
  color: #3c586c;
  font-size: 13px;
  font-weight: 700;
}

.login-panel form {
  display: grid;
  gap: 15px;
}

.full-button {
  width: 100%;
}

.admin-workspace {
  padding: 28px 32px 36px;
  border: 1px solid #dce5eb;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-status {
  margin-top: 20px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #b8dfd1;
  border-radius: 5px;
  color: #176649;
  background: #edf9f5;
}

.admin-status.warning {
  border-color: #f2cf8b;
  color: #885200;
  background: #fff8e8;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.admin-status.warning .status-dot {
  background: #d88a00;
}

.admin-tabs {
  margin: 26px -32px 0;
  padding: 0 32px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.admin-tab.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.admin-section {
  padding-top: 28px;
}

.admin-section form {
  display: grid;
  gap: 16px;
}

.image-upload-field {
  display: grid;
  gap: 6px;
}

.form-label {
  color: #3c586c;
  font-size: 13px;
  font-weight: 700;
}

.image-upload-control {
  min-height: 72px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbd7df;
  border-radius: 5px;
  background: #f8fafb;
}

.image-upload-preview {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid #d6e0e7;
  border-radius: 5px;
  background: var(--white);
  object-fit: contain;
}

.image-upload-actions {
  min-width: 0;
  flex: 1;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.image-upload-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.file-picker {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex !important;
  align-items: center;
  gap: 6px !important;
  border: 1px solid #cbd7df;
  border-radius: 5px;
  color: #315a76 !important;
  background: var(--white);
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.file-picker:hover {
  border-color: #86a7bd;
  background: #f6f9fb;
}

.upload-hint {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  font-weight: 600 !important;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}

.form-divider {
  height: 1px;
  margin-block: 4px;
  background: var(--line);
}

.form-hint {
  margin: -6px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-actions {
  padding-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.card-editor-list {
  display: grid;
  gap: 14px;
}

.card-editor {
  padding: 18px;
  border: 1px solid #dce5eb;
  border-radius: 6px;
  background: #f8fafb;
}

.card-editor-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.danger-icon {
  border-color: #f0c4cb;
}

.danger-icon:hover {
  border-color: var(--red);
  background: #fff1f3;
}

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

.card-toggles {
  margin-top: 14px;
  display: flex;
  gap: 20px;
}

.system-list {
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}

.system-list div {
  min-height: 52px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.system-list dt {
  color: var(--muted);
}

.system-list dd {
  margin: 0;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  min-width: 220px;
  max-width: min(380px, calc(100% - 48px));
  padding: 12px 16px;
  border: 1px solid #a9d7c7;
  border-radius: 5px;
  color: #176649;
  background: #edf9f5;
  box-shadow: var(--shadow);
}

.toast.error {
  border-color: #f0b6bf;
  color: var(--red);
  background: #fff4f5;
}

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

  .account-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metric:nth-child(4) {
    border-right: 0;
  }

  .metric:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }

  .transaction-toolbar {
    flex-direction: column;
  }

  .filter-form {
    width: 100%;
    justify-content: flex-start;
  }

  .card-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-width,
  .admin-width {
    width: min(100% - 24px, 1180px);
  }

  .site-header,
  .header-inner {
    min-height: 58px;
  }

  .brand {
    font-size: 18px;
  }

  .query-section {
    padding-block: 38px 28px;
  }

  .query-section h1 {
    font-size: 22px;
  }

  .query-description {
    overflow-wrap: anywhere;
  }

  .address-search {
    height: auto;
    display: grid;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .address-search input {
    height: 46px;
    border: 1px solid #c9d5df;
    border-radius: 5px;
  }

  .search-button {
    width: 100%;
    min-height: 44px;
    margin-top: 9px;
    border-radius: 5px;
  }

  .mode-notice,
  .data-notice {
    width: 100%;
    align-items: flex-start;
  }

  .price-panel {
    padding-inline: 14px;
  }

  .price-grid {
    gap: 12px;
  }

  .price-item {
    grid-template-columns: 25px 45px minmax(52px, 1fr) 13px;
  }

  .price-item strong {
    font-size: 13px;
  }

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

  .service-card {
    min-height: 154px;
    padding-inline: 12px;
  }

  .footer-inner {
    padding-block: 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }

  .header-search {
    width: 46%;
  }

  .wallet-heading {
    padding: 16px;
  }

  .address-line h1 {
    font-size: 14px;
  }

  .wallet-qr {
    width: 70px;
    height: 70px;
  }

  .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric,
  .metric:nth-child(4) {
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .metric:nth-child(even) {
    border-right: 0;
  }

  .filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-form > label,
  .filter-form select {
    width: 100%;
  }

  .amount-range,
  .date-range {
    grid-column: 1 / -1;
  }

  .amount-range label,
  .date-range label {
    flex: 1;
  }

  .amount-range input,
  .date-range input {
    width: 100%;
  }

  .summary-line {
    padding-block: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .summary-line p {
    display: grid;
    gap: 3px;
  }

  .summary-income,
  .summary-expense {
    margin-left: 0;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .admin-main {
    padding-block: 20px 40px;
  }

  .admin-workspace {
    padding: 22px 16px 28px;
  }

  .admin-tabs {
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
  }

  .two-columns,
  .card-editor-grid {
    grid-template-columns: 1fr;
  }

  .image-upload-control {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .image-upload-control .secondary-button {
    margin-left: 62px;
  }

  .card-toggles {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .system-list div {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    min-height: 132px;
  }

  .header-search {
    display: none;
  }

  .wallet-heading {
    align-items: flex-start;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-form > *,
  .amount-range,
  .date-range {
    grid-column: 1;
  }

  .admin-topline {
    align-items: flex-start;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .wallet-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-identity {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
#filter-form {
    display: none !important;
}