.brand {
  position: relative;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #001529;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #1677ff;
  color: #fff;
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.28);
}

.brand-mark svg,
.topbar-logo svg,
.nav-icon svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.brand-title {
  max-width: 180px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.brand-title span {
  display: block;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.brand-caption {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.nav-block {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item.active {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.32);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: currentColor;
  font-size: 16px;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: currentColor;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #e6f4ff;
  color: var(--color-primary);
}

.topbar-logo svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.topbar-title {
  font-weight: 700;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: #c8d8ee;
}

.card-body {
  padding: 18px;
}

.stat-card {
  padding: 16px;
}

.stat-label {
  color: var(--color-muted);
  font-size: 13px;
}

.stat-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 750;
}

.stat-foot {
  margin-top: 8px;
  color: var(--color-subtle);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text);
}

.btn:hover {
  border-color: #b8c7dc;
}

.btn-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-danger {
  border-color: var(--color-danger);
  background: var(--color-danger);
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.status-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

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

.status-danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.status-info {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

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

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--color-muted);
  font-size: 13px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--color-text);
  padding: 8px 10px;
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.input[readonly],
.textarea[readonly] {
  background: #f7f9fc;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  background: #f2f6fb;
  color: #506176;
  font-size: 13px;
  font-weight: 700;
}

.data-table tr.highlight td {
  background: #f0f7ff;
}

.data-table td.num {
  text-align: right;
}

.op-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.op-group .btn {
  min-height: 30px;
  padding: 0 10px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 95, 191, 0.05);
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  text-align: left;
}

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

.step::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 15px;
  height: 15px;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.step:last-child::after {
  display: none;
}

.step.clickable:hover {
  background: #f8fbff;
}

.step-index {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf2f8;
  color: #66758a;
  font-weight: 800;
}

.step.active {
  background: #eef6ff;
}

.step.active .step-index {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(31, 95, 191, 0.11);
}

.step.done .step-index {
  background: var(--color-success);
  color: #fff;
}

.step-title {
  font-weight: 750;
}

.step.active .step-title {
  color: var(--color-primary);
}

.modal-mask {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 35, 66, 0.42);
  z-index: 100;
}

.modal {
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100vh - 54px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
}

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  gap: 10px;
}

.modal-title {
  font-weight: 750;
}

.modal-body {
  padding: 18px;
}

.toast-root {
  position: fixed;
  right: 22px;
  top: 76px;
  z-index: 120;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-pop);
}

.phone {
  width: 390px;
  max-width: 100%;
  border: 10px solid #172033;
  border-radius: 30px;
  background: #f8fafc;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
  overflow: hidden;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
}

.phone-screen {
  min-height: 620px;
  padding: 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-tabs {
  display: flex;
  gap: 8px;
}

.bank-tab {
  min-width: 88px;
}

.bank-tab.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
