@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root {
  --bg: #f5f7fb;
  --ink: #172033;
  --muted: #8490a5;
  --line: #e9edf4;
  --navy: #101827;
  --primary: #6658e8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  width: 244px;
  background: var(--navy);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 27px 18px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font:
    800 18px Manrope,
    sans-serif;
  margin: 0 8px 54px;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #6b5ce7;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.brand-muted {
  color: #8994a9;
  font-weight: 600;
}
.sidebar-label,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #77839a;
  margin: 0 10px 13px;
}
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #9ca7ba;
  padding: 12px 13px;
  border-radius: 9px;
  margin-bottom: 5px;
  font-weight: 500;
}
.sidebar .nav-link i {
  font-size: 17px;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: #222d42;
  color: #fff;
}
.sidebar .nav-link.active {
  box-shadow: inset 3px 0 #8b7dff;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid #293449;
  color: #aab4c5;
}
.sidebar-bottom small {
  display: block;
  color: #69768d;
  margin: 7px 0 0 16px;
  font-size: 11px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #35c78a;
  border-radius: 50%;
}
.main-content {
  margin-left: 244px;
  padding: 34px 42px 22px;
  max-width: 1600px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 37px;
}
.eyebrow {
  margin: 0 0 7px;
  color: #9aa4b6;
}
.topbar h1 {
  font:
    800 27px Manrope,
    sans-serif;
  margin: 0;
  letter-spacing: -0.7px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f8f0;
  color: #16885a;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  color: #647087;
}
.content-section {
  margin-bottom: 34px;
}
.backoffice-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 5px;
  background: #edf0f7;
  border-radius: 12px;
}
.backoffice-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #69758b;
  padding: 11px 16px;
  font: 600 12px 'DM Sans', sans-serif;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.backoffice-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}
.backoffice-tab.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 39, 75, 0.08);
}
.backoffice-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.backoffice-panel {
  min-width: 0;
}
.webhook-action-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #f0edff;
  color: #7667e8;
  font-size: 14px;
}
.webhook-message {
  color: #536078;
  font-weight: 600;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 15px;
}
.section-heading h2 {
  font:
    700 17px Manrope,
    sans-serif;
  margin: 0 0 5px;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.updated-label,
.form-hint {
  color: #9aa4b6;
  font-size: 11px;
}
.stat-card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(24, 39, 75, 0.025);
}
.stat-card {
  padding: 19px 21px;
  min-height: 135px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7e899d;
  font-size: 12px;
  font-weight: 600;
}
.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.purple {
  background: #f0edff;
  color: #7667e8;
}
.blue {
  background: #eaf3ff;
  color: #4e8fe8;
}
.green {
  background: #e8f8f0;
  color: #20a875;
}
.stat-value {
  font:
    800 27px Manrope,
    sans-serif;
  margin-top: 9px;
  letter-spacing: -0.6px;
}
.stat-foot {
  font-size: 11px;
  color: #a0a9b8;
  margin-top: 1px;
}
.panel {
  overflow: hidden;
}
.table {
  font-size: 12px;
}
.table thead th {
  background: #fafbfe;
  color: #8994a7;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 15px 18px;
  border-color: #f0f2f6;
  color: #4d586d;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.wallet-name {
  font-weight: 700;
  color: #202b40;
}
.wallet-list-group {
  margin-bottom: 28px;
}
.wallet-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 0 13px;
}
.wallet-list-heading h3 {
  margin: 0;
  color: #263249;
  font: 700 15px Manrope, sans-serif;
}
.wallet-list-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.wallet-count {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  padding: 0 8px;
  border-radius: 10px;
  background: #f0edff;
  color: #6557db;
  font-size: 11px;
  font-weight: 700;
}
.wallet-badges {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}
.wallet-role-pill {
  background: #f0edff;
  color: #6557db;
}
.subtext {
  display: block;
  color: #9aa4b6;
  font-size: 10px;
  margin-top: 3px;
}
.pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: #edf8f2;
  color: #219568;
}
.pill.pending {
  background: #fff6e6;
  color: #bb8423;
}
.pill.failed {
  background: #fff0f0;
  color: #d35c5c;
}
.empty-state {
  text-align: center !important;
  color: #9aa4b6 !important;
  padding: 30px !important;
}
.btn {
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 14px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: #5548d2;
  border-color: #5548d2;
}
.btn-primary-soft {
  background: #f0eeff;
  color: #6557db;
  border: 0;
}
.transfer-panel {
  padding: 23px;
}
.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #536078;
  margin-bottom: 7px;
}
.form-control,
.form-select {
  border-color: #e5e9f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #29354b;
  min-height: 41px;
}
.form-control:focus,
.form-select:focus {
  border-color: #958cf1;
  box-shadow: 0 0 0 3px #eeeaff;
}
.form-hint {
  display: block;
  margin-top: 6px;
}
.transfer-warning {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9b7a3d;
  background: #fff9ec;
  border: 1px solid #f6edda;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.5;
}
.transfer-warning i {
  font-size: 16px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #f0f2f6;
}
.feedback {
  margin-top: 14px;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12px;
}
.feedback.success {
  background: #eaf8f1;
  color: #187e55;
}
.feedback.error {
  background: #fff0f0;
  color: #b94c4c;
}
.page-footer {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: #a1aaba;
  font-size: 10px;
}
.page-footer span {
  padding: 0 5px;
}
@media (max-width: 900px) {
  .sidebar {
    width: 68px;
    padding: 22px 10px;
  }
  .brand {
    margin: 0 6px 45px;
  }
  .brand > span:last-child,
  .sidebar-label,
  .sidebar .nav-link:not(.active) {
    display: none;
  }
  .sidebar .nav-link {
    justify-content: center;
    padding: 12px 8px;
    font-size: 0;
  }
  .sidebar .nav-link i {
    font-size: 19px;
  }
  .sidebar-bottom {
    padding: 14px 7px;
  }
  .sidebar-bottom small,
  .connection {
    font-size: 0;
  }
  .main-content {
    margin-left: 68px;
    padding: 27px 24px;
  }
}
@media (max-width: 600px) {
  .main-content {
    padding: 22px 14px;
  }
  .topbar {
    margin-bottom: 27px;
  }
  .topbar h1 {
    font-size: 23px;
  }
  .section-heading {
    align-items: start;
    gap: 10px;
    flex-direction: column;
  }
  .updated-label {
    display: none;
  }
  .transfer-panel {
    padding: 16px;
  }
  .form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }
  .form-footer .btn {
    width: 100%;
  }
  .network-badge {
    font-size: 9px;
  }
  .brand {
    margin-bottom: 42px;
  }
}
