:root {
  color-scheme: light;
  --ink: #14231d;
  --ink-soft: #52615b;
  --forest: #10251d;
  --forest-raised: #173329;
  --mint: #9df0c5;
  --mint-bright: #c5ffdc;
  --paper: #f3f4ee;
  --card: #fbfcf8;
  --line: #d9ded7;
  --line-dark: rgba(255, 255, 255, 0.13);
  --positive: #157a4d;
  --negative: #bc4d3d;
  --warning: #9a6819;
  --shadow: 0 24px 70px rgba(17, 37, 29, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(63, 196, 126, 0.42);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: -240px;
  right: -120px;
  background: radial-gradient(circle, rgba(157, 240, 197, 0.42), transparent 68%);
}

.ambient-two {
  bottom: -300px;
  left: -180px;
  background: radial-gradient(circle, rgba(105, 175, 142, 0.2), transparent 68%);
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(16, 37, 29, 0.08);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand small {
  color: #708078;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.header-link {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.header-link:hover {
  opacity: 0.6;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 460px;
  padding: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: end;
  overflow: hidden;
  color: #f4faf6;
  background:
    radial-gradient(circle at 88% 12%, rgba(157, 240, 197, 0.14), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(94, 197, 143, 0.12), transparent 30%),
    var(--forest);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 90px rgba(16, 37, 29, 0.14);
}

.hero::after {
  content: "";
  position: absolute;
  top: 46px;
  right: 54px;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(157, 240, 197, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(157, 240, 197, 0.035),
    0 0 0 52px rgba(157, 240, 197, 0.025);
}

.hero-copy,
.hero-controls {
  position: relative;
  z-index: 1;
}

.network-pill {
  width: fit-content;
  margin-bottom: 28px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mint-bright);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(157, 240, 197, 0.1);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(50px, 6.4vw, 84px);
  font-weight: 720;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--mint);
}

.hero-copy > p {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(244, 250, 246, 0.67);
  font-size: 15px;
  line-height: 1.85;
}

.hero-controls {
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
}

.sync-meta {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sync-meta span {
  color: rgba(244, 250, 246, 0.5);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.sync-meta strong {
  font-size: 14px;
  font-weight: 650;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background 160ms ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--forest);
  background: var(--mint);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.refresh-button {
  width: 100%;
}

.refresh-icon {
  font-size: 19px;
  line-height: 1;
  transition: transform 400ms ease;
}

.refresh-button.is-loading .refresh-icon {
  animation: spin 800ms linear infinite;
}

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

.summary-strip {
  width: calc(100% - 64px);
  min-height: 132px;
  margin: -28px auto 0;
  padding: 28px 42px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.7fr 1px 1.3fr 1px 1.3fr;
  gap: 34px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(20, 35, 29, 0.07);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.summary-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.summary-item > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.summary-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(23px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.summary-item strong b {
  font-weight: 730;
}

.summary-item strong small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.summary-divider {
  width: 1px;
  height: 54px;
  background: var(--line);
}

.wallet-section {
  padding: 94px 0 80px;
}

.public-dashboard .wallet-section {
  padding-top: 48px;
}

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

.section-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wallet-refresh-button {
  width: auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--positive);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.section-heading h2,
.dashboard-top h1,
.login-intro h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p,
.dashboard-top p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.page-status {
  min-height: 0;
  margin-bottom: 16px;
}

.status-banner {
  padding: 12px 15px;
  color: #704b0e;
  background: #fff6df;
  border: 1px solid #ebd39e;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

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

.wallet-card {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(20, 35, 29, 0.09);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 44px rgba(17, 37, 29, 0.055);
  animation: card-in 420ms ease both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.wallet-card-head {
  padding: 24px 24px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

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

.wallet-index {
  display: block;
  margin-bottom: 6px;
  color: var(--positive);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.wallet-card h3 {
  max-width: 100%;
  margin: 0 0 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.wallet-address-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.wallet-address {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #edf0ea;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.explorer-link {
  min-width: fit-content;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.wallet-warning {
  margin: 14px 24px 0;
  padding: 9px 11px;
  color: #775214;
  background: #fff5dc;
  border-radius: 9px;
  font-size: 11px;
}

.total-asset-box {
  margin: 22px 24px 0;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  color: #f5fff9;
  background:
    radial-gradient(circle at 92% 0, rgba(157, 240, 197, 0.1), transparent 38%),
    var(--forest-raised);
  border: 1px solid rgba(245, 255, 249, 0.08);
  border-radius: 14px;
}

.total-asset-copy {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.total-asset-label {
  color: var(--mint);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.total-asset-value {
  color: #f5fff9;
  font-size: clamp(25px, 2.4vw, 32px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.total-asset-value small {
  margin-left: 5px;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.total-asset-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: rgba(245, 255, 249, 0.88);
  font-size: 10px;
  font-weight: 750;
  text-align: left;
}

.total-asset-meta small {
  padding-left: 10px;
  color: rgba(245, 255, 249, 0.58);
  border-left: 1px solid rgba(245, 255, 249, 0.2);
  font-size: 9px;
  font-weight: 550;
}

.asset-pair {
  padding: 12px 24px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.asset-box {
  min-width: 0;
  padding: 16px;
  color: var(--ink);
  background: #f0f2ed;
  border-radius: 13px;
}

.asset-label {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.token-badge {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--mint);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.token-badge.trx {
  color: #fff;
  background: #de5246;
}

.asset-value {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.transaction-block {
  padding: 0 24px 24px;
}

.transaction-heading {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.transaction-heading span:last-child {
  font-weight: 500;
  letter-spacing: 0;
}

.transaction-list {
  border-top: 1px solid var(--line);
}

.transaction-row {
  min-width: 0;
  min-height: 55px;
  display: grid;
  grid-template-columns: 55px minmax(80px, 1fr) minmax(100px, 1.2fr) 18px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.direction {
  width: fit-content;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 850;
}

.direction.in {
  color: var(--positive);
  background: #e1f6e9;
}

.direction.out {
  color: var(--negative);
  background: #f9e5e1;
}

.direction.self {
  color: #65736c;
  background: #e9ece8;
}

.transaction-amount {
  min-width: 0;
  overflow: hidden;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-amount small {
  color: var(--ink-soft);
  font-size: 9px;
}

.transaction-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.transaction-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-link {
  color: var(--ink-soft);
  font-size: 16px;
  text-decoration: none;
}

.empty-transactions {
  padding: 24px 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.wallet-foot {
  padding: 0 24px 20px;
  color: #819089;
  font-size: 9px;
  text-align: right;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 270px;
  padding: 48px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(251, 252, 248, 0.68);
  border: 1px dashed #bfc8c1;
  border-radius: var(--radius-md);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.empty-state a {
  font-size: 12px;
  font-weight: 800;
}

.skeleton {
  min-height: 445px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, 0.9) 45%,
      transparent 70%
    ),
    #e6e9e3;
  background-size: 200% 100%;
  border-radius: var(--radius-md);
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 100px;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #718078;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 750;
  text-decoration: none;
}

/* Admin */
.admin-body {
  background:
    radial-gradient(circle at 12% 0, rgba(157, 240, 197, 0.23), transparent 28%),
    var(--paper);
}

.admin-main {
  padding: 42px 0 90px;
}

.login-shell {
  min-height: calc(100vh - 230px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 90px;
  align-items: center;
}

.login-intro {
  max-width: 570px;
}

.login-intro h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 6vw, 72px);
}

.login-intro > p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.safety-note {
  width: fit-content;
  margin-top: 32px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--positive);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(21, 122, 77, 0.15);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}

.safety-note span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--mint);
  border-radius: 50%;
}

.login-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  background: var(--card);
  border: 1px solid rgba(20, 35, 29, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-heading span {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.form-heading small {
  color: #859189;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #f7f8f4;
  border: 1px solid #ccd3cc;
  border-radius: 10px;
  outline: none;
  font-size: 13px;
  transition:
    border 150ms ease,
    box-shadow 150ms ease;
}

input:focus {
  border-color: var(--positive);
  box-shadow: 0 0 0 3px rgba(21, 122, 77, 0.08);
}

input::placeholder {
  color: #a2aba5;
}

.wide-button {
  width: 100%;
  margin-top: 4px;
}

.form-message {
  min-height: 17px;
  margin: 0;
  color: var(--negative);
  font-size: 11px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.dashboard-top {
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.dashboard-top h1 {
  margin-bottom: 12px;
  font-size: 50px;
}

.admin-identity {
  min-width: 190px;
  padding-left: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  border-left: 2px solid var(--mint);
}

.admin-identity span {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-identity strong {
  font-size: 13px;
}

.text-button {
  padding: 0;
  color: var(--negative);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.admin-feedback {
  min-height: 0;
  margin-bottom: 14px;
}

.admin-feedback.has-message {
  min-height: 42px;
  padding: 12px 14px;
  color: var(--positive);
  background: #e5f6eb;
  border: 1px solid #bfe4ce;
  border-radius: 10px;
  font-size: 12px;
}

.admin-feedback.is-error {
  color: var(--negative);
  background: #fae9e6;
  border-color: #ebc3bc;
}

.admin-panel {
  margin-bottom: 20px;
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(20, 35, 29, 0.09);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(17, 37, 29, 0.045);
}

.panel-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--positive);
  background: #e6f4ea;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
}

.panel-heading h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.panel-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.add-wallet-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(260px, 1.5fr) auto;
  gap: 14px;
  align-items: end;
}

.add-button {
  height: 48px;
  white-space: nowrap;
}

.secondary-button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink);
  background: #edf0eb;
  border: 1px solid #d7ddd6;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.admin-wallet-list {
  display: flex;
  flex-direction: column;
}

.admin-wallet-row {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 50px minmax(130px, 0.75fr) minmax(280px, 1.7fr) 84px 132px;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.admin-wallet-row:first-child {
  border-top: 0;
}

.row-index {
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: #f0f2ed;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.visibility-toggle {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink);
  background: #f4f5f1;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.visibility-toggle input {
  width: 15px;
  height: 15px;
  padding: 0;
  accent-color: var(--positive);
}

.row-actions {
  height: 48px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.row-actions button {
  height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.save-wallet {
  color: var(--forest);
  background: var(--mint);
}

.delete-wallet {
  color: var(--negative);
  background: #f9e8e4;
}

.admin-empty {
  padding: 46px 20px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}

.password-form {
  max-width: 770px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.password-form .secondary-button {
  height: 48px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 520px;
    padding: 54px 44px 44px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-controls {
    max-width: 390px;
  }

  .summary-strip {
    width: calc(100% - 36px);
    gap: 22px;
    padding-inline: 28px;
  }

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

  .login-shell {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .login-intro {
    max-width: 680px;
  }

  .login-card {
    max-width: 560px;
  }

  .admin-wallet-row {
    grid-template-columns: 44px minmax(120px, 0.7fr) minmax(250px, 1.3fr);
  }

  .visibility-toggle {
    grid-column: 2;
  }

  .row-actions {
    grid-column: 3;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 76px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .header-link {
    padding: 8px 2px;
    font-size: 11px;
  }

  .hero {
    min-height: 510px;
    padding: 38px 24px 30px;
    gap: 36px;
    border-radius: 22px;
  }

  .hero::after {
    top: 24px;
    right: -38px;
    width: 120px;
    height: 120px;
  }

  .network-pill {
    margin-bottom: 24px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .hero-copy > p {
    margin-top: 23px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-controls {
    padding: 18px;
  }

  .summary-strip {
    width: calc(100% - 24px);
    min-height: auto;
    margin-top: -18px;
    padding: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .summary-item:first-child {
    grid-column: 1 / -1;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .summary-item:first-child strong {
    font-size: 26px;
  }

  .summary-divider {
    display: none;
  }

  .summary-item strong {
    font-size: 22px;
  }

  .wallet-section {
    padding: 70px 0 60px;
  }

  .public-dashboard .wallet-section {
    padding-top: 28px;
  }

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

  .section-actions {
    width: 100%;
    justify-content: space-between;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .wallet-card-head {
    padding: 20px 18px 17px;
  }

  .wallet-card h3 {
    font-size: 18px;
  }

  .explorer-link {
    padding-inline: 8px;
  }

  .asset-pair {
    padding: 10px 18px 18px;
    gap: 9px;
  }

  .asset-box {
    padding: 13px;
  }

  .asset-value {
    font-size: clamp(18px, 5.5vw, 23px);
  }

  .transaction-block {
    padding: 0 18px 20px;
  }

  .transaction-row {
    grid-template-columns: 48px minmax(72px, 0.9fr) minmax(80px, 1fr) 14px;
    gap: 7px;
  }

  .wallet-foot {
    padding: 0 18px 18px;
  }

  .total-asset-box {
    margin: 18px 18px 0;
    padding: 17px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .total-asset-value {
    font-size: 29px;
  }

  .total-asset-meta {
    align-items: flex-start;
    text-align: left;
  }

  .total-asset-value small {
    margin: 6px 0 0;
    display: block;
  }

  footer {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

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

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

  .login-intro h1 {
    font-size: 43px;
  }

  .login-card {
    padding: 25px;
    border-radius: 20px;
  }

  .dashboard-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-top h1 {
    font-size: 42px;
  }

  .admin-identity {
    width: 100%;
  }

  .admin-panel {
    padding: 20px 16px;
  }

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

  .panel-heading > .secondary-button {
    padding-inline: 10px;
    white-space: nowrap;
  }

  .panel-number {
    display: none;
  }

  .add-wallet-fields,
  .password-form {
    grid-template-columns: 1fr;
  }

  .admin-wallet-row {
    padding: 20px 0;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .row-index {
    grid-row: 1 / 3;
    height: 100%;
    min-height: 106px;
  }

  .admin-wallet-row > label:nth-of-type(2) {
    grid-column: 1 / -1;
  }

  .visibility-toggle {
    grid-column: 1 / -1;
  }

  .row-actions {
    height: auto;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .summary-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .summary-item,
  .summary-item:first-child {
    grid-column: 1;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-item:first-child {
    padding-top: 2px;
  }

  .summary-item:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .summary-item strong,
  .summary-item:first-child strong {
    font-size: 25px;
  }

  .asset-pair {
    grid-template-columns: 1fr;
  }

  .asset-value {
    font-size: 29px;
  }
}

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