:root {
  --cyan: #25b5d6;
  --cyan-dark: #16a3c3;
  --sidebar: #1b2e3a;
  --sidebar-dark: #172833;
  --text: #334155;
  --muted: #8da0ad;
  --line: #dce5ea;
  --page: #eef3f5;
  --panel: #ffffff;
  --green: #11a84c;
  --blue: #16a9de;
  --purple: #6a62d7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef3f5;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eaf6ff;
}

.login-card {
  width: min(420px, calc(100vw - 32px));
  min-height: 615px;
  padding: 40px 32px 30px;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(42, 84, 115, 0.12);
}

.login-card h1 {
  margin: 0;
  color: #1f4268;
  text-align: center;
  font-size: 32px;
}

.login-card h1 span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  color: #fff;
  border-radius: 50%;
  background: #ff951f;
}

.login-pill {
  width: 112px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 10px auto 30px;
  color: #27486d;
  background: #d8eafb;
  border: 1px solid #a7c9ef;
  border-radius: 18px;
}

.login-card form {
  display: grid;
  gap: 20px;
}

.login-card label {
  display: grid;
  gap: 9px;
  color: #254664;
}

.login-card input {
  height: 56px;
  border-radius: 22px;
  border-color: #c7dcf1;
  padding: 0 22px;
}

.captcha-box {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #20a41f;
  background: #f1ffed;
  border: 1px solid #37cb38;
}

.telegram-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: center;
}

.telegram-code-row input {
  min-width: 0;
}

.telegram-code-row a,
.telegram-code-row span,
.telegram-code-row button {
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #a7c9ef;
  border-radius: 18px;
  color: #1f4268;
  background: #e8f3ff;
  font-weight: 700;
  white-space: nowrap;
}

.telegram-code-row button {
  cursor: pointer;
}

.telegram-help {
  margin-top: 2px;
  color: #7d90a3;
  line-height: 1.55;
}

.telegram-guide {
  display: grid;
  gap: 12px;
  margin: -10px 0 20px;
  padding: 14px;
  border: 1px solid #cae1ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5fbff 0%, #edf7ff 100%);
}

.telegram-guide-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.telegram-guide-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: #229ed9;
  box-shadow: 0 8px 16px rgba(34, 158, 217, 0.22);
}

.telegram-guide strong {
  display: block;
  margin-bottom: 4px;
  color: #1f4268;
  font-size: 14px;
}

.telegram-guide p {
  margin: 0;
  color: #60788d;
  line-height: 1.55;
}

.telegram-guide a {
  color: #0a88c2;
  font-weight: 700;
}

.telegram-guide-button {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff !important;
  background: #229ed9;
  font-weight: 700;
}

.telegram-guide-button.muted {
  color: #71869a !important;
  background: #edf2f6;
}

.login-card button[type="submit"] {
  height: 60px;
  color: #1f4268;
  background: #d3e7fa;
  border: 1px solid #abcbed;
  border-radius: 28px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-card footer {
  margin-top: 24px;
  color: #7d90a3;
  text-align: center;
}

.auth-panel {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  background: #fff;
  border: 1px solid #dce5ea;
  box-shadow: 0 10px 30px rgba(28, 56, 70, 0.12);
}

.auth-brand {
  color: #16a3c3;
  font-size: 20px;
  font-weight: 700;
}

.auth-panel h1 {
  margin: 16px 0 20px;
  font-size: 24px;
  font-weight: 400;
}

.auth-switch {
  margin: 18px 0 0;
  color: #7f92a0;
  text-align: center;
}

.auth-switch a,
.logout-link {
  color: #fff;
  font-weight: 700;
}

.auth-switch a {
  color: #0f9dc0;
}

.form-error {
  padding: 10px 12px;
  color: #9b1c1c;
  background: #ffe8e8;
  border: 1px solid #ffc9c9;
}

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

code,
pre {
  font-family: Consolas, "Liberation Mono", monospace;
}

code {
  overflow-wrap: anywhere;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 193px minmax(0, 1fr);
}

.sidebar {
  color: #9cb3c3;
  background: var(--sidebar);
  min-height: 100vh;
}

.brand {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #fff;
  background: var(--cyan);
}

.brand strong {
  font-size: 18px;
  white-space: nowrap;
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
}

.nav-group-title {
  padding: 14px 8px 8px;
  color: #55788e;
  font-size: 12px;
}

.nav-item {
  position: relative;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: var(--sidebar-dark);
}

.nav-item.active {
  font-weight: 700;
}

.nav-icon {
  width: 19px;
  text-align: center;
  color: #7db6dc;
}

.nav-item.active .nav-icon {
  color: #785dff;
}

.nav-item em {
  margin-left: auto;
  min-width: 18px;
  height: 15px;
  border-radius: 4px;
  color: #fff;
  background: var(--cyan);
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-style: normal;
}

.sub-nav-wrap {
  display: none;
  padding: 4px 0 12px 48px;
  background: var(--sidebar-dark);
}

.sub-nav-wrap.show {
  display: grid;
}

.sub-nav {
  padding: 9px 0;
  color: #8fb4ca;
}

.sub-nav.active,
.sub-nav:hover {
  color: #fff;
}

.progress-list {
  padding: 22px 8px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 7px;
  color: #86b8d6;
  font-size: 12px;
}

.progress {
  height: 2px;
  background: #13232e;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.progress.accent i {
  background: #8a6be8;
}

.workspace {
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 20px;
  color: #fff;
  background: var(--cyan);
  box-shadow: 0 2px 8px rgba(17, 66, 88, 0.18);
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.topbar-spacer {
  flex: 1;
}

.merchant-switch {
  padding: 0 8px;
  font-weight: 700;
}

.topbar-bag {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #8876ff, #4fb6ff);
  border: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 27px;
}

.logout-link {
  padding: 0 8px;
  font-size: 13px;
}

.page-head {
  padding: 18px 20px 22px;
  border-bottom: 1px solid #d6e0e5;
  background: #f7fafb;
}

.page-head h1 {
  margin: 0 0 2px;
  color: #5c7181;
  font-size: 24px;
  font-weight: 400;
}

.page-head p {
  margin: 0;
  color: #8a9aa6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.metric {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--panel);
  border: 1px solid #e6edf1;
  min-width: 0;
}

.metric > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
}

.metric strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 29px;
  font-weight: 300;
  line-height: 1.2;
}

.metric span {
  margin-left: 2px;
  color: #9aabb5;
}

.metric p {
  margin: 2px 0 0;
  color: #8d9da8;
  padding: 0 8px;
}

.metric.purple strong {
  color: var(--purple);
}

.metric.green strong {
  color: var(--green);
}

.metric.blue strong {
  color: var(--blue);
}

.metric.dark strong {
  color: #2b3f52;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 30px;
  padding: 0 20px 28px;
}

.welcome-panel,
.channel-panel,
.content-band,
.plain-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.welcome-panel {
  overflow: hidden;
}

.welcome-actions {
  height: 89px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 29px 32px 0;
  background: linear-gradient(180deg, #18acd0, #20b1d0);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 17px;
  color: #fff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.welcome-card {
  position: relative;
  min-height: 146px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.avatar-bag {
  position: absolute;
  top: -37px;
  left: 50%;
  transform: translateX(-50%);
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #8875ff, #50b6ff);
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 50px;
}

.welcome-card h2 {
  margin: 51px 0 9px;
  color: #6d7b85;
  font-weight: 300;
  font-size: 29px;
}

.welcome-card p {
  margin: 0;
  color: #697b88;
  font-size: 17px;
}

.welcome-card strong {
  color: #1fae50;
  font-weight: 400;
}

.income-strip {
  min-height: 79px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  text-align: center;
  background: #eef3f5;
  border-top: 1px solid #e3eaee;
}

.income-strip strong {
  color: #96a7b2;
  font-size: 21px;
}

.income-strip p {
  margin: 2px 0 0;
  color: #93a5b1;
  font-weight: 700;
}

.channel-panel header {
  height: 40px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #e2e9ee;
  font-weight: 700;
}

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

.channel-table > div {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 0 17px;
  border-right: 1px solid #e3eaee;
  border-bottom: 1px solid #e3eaee;
}

.quick-start-panel {
  margin: 0 20px 28px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.quick-start-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.quick-start-panel header strong {
  color: #243e52;
  font-size: 16px;
}

.quick-start-panel header span {
  color: #8195a5;
}

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

.quick-start-grid a {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe9f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.quick-start-grid b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: #22b2cf;
}

.quick-start-grid span {
  color: #526879;
  line-height: 1.45;
}

.quick-start-grid a:hover {
  border-color: #22b2cf;
  background: #f1fbfe;
}

.channel-brief-panel {
  margin: 0 20px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.channel-brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: stretch;
  min-height: 126px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #118aa4 0%, #16b7ce 55%, #4b73f2 100%);
  background-size: 30px 30px, auto;
}

.channel-brief-hero > div {
  padding: 24px 28px;
  color: #fff;
}

.channel-brief-kicker {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.channel-brief-hero h2 {
  margin: 12px 0 6px;
  font-size: 26px;
  font-weight: 500;
}

.channel-brief-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.channel-brief-hero aside {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  color: #fff;
  background: rgba(13, 44, 58, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.channel-brief-hero aside strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
}

.channel-brief-hero aside span {
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.channel-brief-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 14px;
  padding: 16px 18px 0;
}

.channel-brief-card {
  min-height: 128px;
  padding: 16px;
  border: 1px solid #dbe9f0;
  border-radius: 8px;
  background: #f8fbfd;
}

.channel-brief-card.allowed {
  background: linear-gradient(180deg, #f7fcfd 0%, #f2f9fb 100%);
}

.channel-brief-card.forbidden {
  border-color: #ead9d5;
  background: #fff8f6;
}

.channel-brief-card b,
.channel-brief-facts b {
  display: block;
  margin-bottom: 8px;
  color: #21495b;
}

.channel-brief-card p {
  margin: 0 0 12px;
  color: #657a88;
  line-height: 1.65;
}

.channel-brief-card.forbidden p {
  margin-bottom: 0;
  color: #7d5147;
}

.channel-brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-brief-tags span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  color: #236a7a;
  border: 1px solid #cce5ed;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}

.channel-brief-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 18px 18px;
}

.channel-brief-facts div {
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid #dde9ef;
  border-radius: 8px;
  background: #fff;
}

.channel-brief-facts span {
  color: #526879;
  line-height: 1.65;
}

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

.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}

.pay-method .pay-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 18px;
}

.pay-method.alipay .pay-icon {
  border-radius: 3px;
  color: #fff;
  background: #1677ff;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.pay-method.wxpay .pay-icon {
  width: 18px;
  height: 18px;
  color: transparent;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%234caf43' d='M25.6 10.5C12.7 10.5 2.2 18.9 2.2 29.2c0 5.9 3.5 11.2 9 14.6l-2.1 7 8.1-4.1c2.6.8 5.4 1.2 8.4 1.2 12.9 0 23.4-8.4 23.4-18.7S38.5 10.5 25.6 10.5Z'/%3E%3Cpath fill='%234caf43' d='M39.9 27.4c-10.9 0-19.8 7-19.8 15.6s8.9 15.6 19.8 15.6c2.5 0 4.9-.4 7.1-1.1l6.8 3.4-1.7-5.8c4.7-2.8 7.6-7.3 7.6-12.2 0-8.5-8.9-15.5-19.8-15.5Z'/%3E%3Ccircle cx='18.3' cy='25.6' r='2.8' fill='%23fff'/%3E%3Ccircle cx='32.9' cy='25.6' r='2.8' fill='%23fff'/%3E%3Ccircle cx='33.4' cy='40.8' r='2.2' fill='%23fff'/%3E%3Ccircle cx='45.2' cy='40.8' r='2.2' fill='%23fff'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transform: translateY(0);
}

.channel-title.alipay {
  color: #2f8dff;
}

.channel-title.wxpay {
  color: #4caf43;
}

.content-band {
  margin: 20px;
  padding: 18px;
}

.profile-panel,
.list-panel,
.mini-card {
  margin: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.profile-panel {
  padding: 0 30px 28px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: 255px 255px;
  max-width: 520px;
  margin: 0 0 20px;
}

.profile-tabs a {
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e2e8;
  border-top: 0;
  background: #f7fafb;
}

.profile-tabs a.active {
  background: #fff;
  border-bottom-color: #fff;
}

.api-form-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 930px;
  margin: 16px 0;
}

.api-form-row > label {
  text-align: right;
}

.copy-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
}

.copy-input input,
.copy-input textarea {
  border-radius: 0;
  background: #f5f7f8;
}

.copy-input textarea {
  min-height: 75px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #d8e2e8;
  font: inherit;
}

.copy-input button {
  border: 1px solid #d8e2e8;
  border-left: 0;
  background: #eef3f5;
  cursor: pointer;
}

.api-actions {
  display: flex;
  gap: 8px;
  margin-left: 186px;
  align-items: center;
}

.info-button,
.danger-button,
.search-button,
.reset-button,
.green-button,
.wide-purple {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.info-button {
  display: inline-flex;
  align-items: center;
  background: #22b7de;
}

.danger-button {
  background: #f05258;
}

.wide-purple,
.search-button {
  background: #7462c6;
}

.wide-purple {
  width: 315px;
  margin-left: 186px;
}

.reset-button {
  color: #405668;
  background: #fff;
  border: 1px solid #d8e2e8;
}

.green-button {
  background: #20bd4b;
}

.help-note {
  margin: 16px 0;
  padding: 14px;
  color: #2f7a22;
  background: #e0f5d7;
  border: 1px solid #bfe4b4;
  line-height: 1.9;
}

.list-panel h2,
.mini-card h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #e4ebef;
  font-size: 16px;
}

.list-panel {
  overflow-x: auto;
}

.user-orders-panel {
  border: 1px solid #dfeaf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(31, 66, 104, 0.06);
}

.user-orders-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-orders-panel h2 span {
  color: #7f95a6;
  font-size: 13px;
  font-weight: 500;
}

.user-orders-panel .filter-row {
  border-bottom: 1px solid #e8f0f5;
  background: #fbfdff;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 26px 16px;
}

.filter-row input,
.filter-row select {
  width: auto;
  min-width: 130px;
}

.arrow-button {
  min-width: 36px;
  border: 1px solid #d8e2e8;
  background: #f8fafb;
  font-size: 25px;
}

.mini-card {
  width: 458px;
}

.wide-mini {
  width: min(720px, calc(100% - 40px));
}

.compact-metrics {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.mini-card p {
  margin: 18px 16px;
}

.copy-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 0 16px 24px;
}

.withdraw-form {
  display: grid;
  gap: 12px;
  padding: 18px 16px 22px;
}

.withdraw-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.8fr);
  gap: 10px;
}

.withdraw-choice {
  min-height: 58px;
  border: 1px solid #cddbe3;
  border-radius: 6px;
  background: #fff;
  color: #173247;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.withdraw-choice.primary {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 10px 14px;
  border-color: #21afd0;
  background: #e9f9fc;
  color: #0d7890;
}

.withdraw-choice strong {
  color: #173247;
  font-size: 18px;
}

.withdraw-choice:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.withdraw-form label {
  display: grid;
  gap: 6px;
  color: #526879;
  font-weight: 700;
}

.withdraw-destination {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d8e6ee;
  border-radius: 6px;
  background: #f8fcfe;
}

.withdraw-destination div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
}

.withdraw-destination dt {
  color: #71889a;
  font-weight: 800;
}

.withdraw-destination dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #173247;
}

.withdraw-note {
  margin: 4px 0 0;
  padding: 12px;
  color: #2f7a22;
  background: #e0f5d7;
  border: 1px solid #bfe4b4;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .withdraw-choice-grid {
    grid-template-columns: 1fr;
  }
}

.notice-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #bfe4b4;
  border-radius: 4px;
  background: #e0f5d7;
  color: #2f7a22;
  font-weight: 700;
}

.notice-banner.error {
  border-color: #f0c7ca;
  background: #fff0f1;
  color: #a5282f;
}

.settings-block h2 {
  margin: 0 0 12px;
  color: #102e44;
  font-size: 18px;
}

.settings-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 930px;
  margin-bottom: 8px;
}

.settings-title-row span {
  color: #7e94a5;
  font-size: 13px;
}

.security-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  max-width: 1120px;
}

.security-settings-block {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fbfdfe;
}

.security-settings-block .api-form-row {
  grid-template-columns: 118px minmax(0, 1fr);
  max-width: none;
}

.security-settings-block .api-form-row > label {
  text-align: left;
}

.security-settings-block .wide-purple {
  width: 100%;
  margin-left: 0;
}

.security-form-note {
  margin: 0 0 12px;
  color: #6f8495;
  line-height: 1.7;
}

.txid-code {
  display: inline-block;
  max-width: 260px;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #244b65;
}

.inline-form {
  display: inline-flex;
  margin-right: 6px;
}

.inline-form button {
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
}

.settlement-actions {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.inline-form.settlement-action-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 6px;
  margin: 0;
}

.settlement-action-form input {
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #cddbe3;
  border-radius: 4px;
  font: inherit;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 28, 40, 0.48);
}

.confirm-modal.show {
  display: flex;
}

.confirm-dialog {
  width: min(460px, 100%);
  border: 1px solid #d8e2e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(9, 41, 61, 0.24);
}

.confirm-dialog header,
.confirm-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6eef3;
}

.confirm-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid #e6eef3;
  border-bottom: 0;
}

.confirm-dialog header button {
  border: 0;
  background: transparent;
  color: #7a8c99;
  font-size: 24px;
  cursor: pointer;
}

.confirm-dialog dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
}

.confirm-dialog dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}

.confirm-dialog dt {
  color: #758b9b;
  font-weight: 700;
}

.confirm-dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #173247;
}

.confirm-dialog p {
  margin: 0;
  padding: 0 16px 16px;
  color: #6d7f8d;
}

.confirm-dialog .secondary-button,
.confirm-dialog .primary-button {
  min-height: 36px;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}

.support-panel {
  padding: 0;
  background: transparent;
}

.support-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid #d8e2e8;
}

.support-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: #2fbad2;
  font-size: 18px;
  line-height: 1;
}

.support-main h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #24384a;
}

.support-main p {
  margin: 0 0 14px;
  color: #6f8192;
  line-height: 1.7;
}

.support-url-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #60778a;
}

.support-url-line code {
  min-width: 0;
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #24384a;
  background: #f6f9fb;
  border: 1px solid #d8e2e8;
  font-family: Consolas, "Microsoft YaHei", monospace;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 38px;
  padding: 0 18px;
  color: #fff;
  background: #21afd0;
  border: 0;
  font-weight: 700;
  text-decoration: none;
}

.support-button:hover {
  background: #168fb0;
}

.support-button.disabled {
  color: #8b9cac;
  background: #e9eef2;
  cursor: not-allowed;
}

.plain-panel {
  padding: 18px;
}

.plain-panel h2 {
  margin: 0 0 14px;
  color: #465867;
  font-size: 18px;
}

.detail-list {
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-height: 36px;
  align-items: center;
  border-bottom: 1px solid #edf2f5;
}

.detail-list dt {
  color: #7f92a0;
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.long-text {
  max-height: 92px;
  overflow: auto;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.admin-shell {
  grid-template-columns: 218px minmax(0, 1fr);
  background: #edf4f7;
}

.admin-shell .sidebar {
  background: #122533;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.admin-shell .brand {
  height: 58px;
  background: #102d3b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-shell .nav-group-title {
  padding: 18px 14px 8px;
  color: #7893a4;
}

.admin-shell .nav-item {
  height: 40px;
  margin: 4px 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
}

.admin-shell .nav-item:hover,
.admin-shell .nav-item.active {
  background: #1c4051;
}

.admin-shell .nav-item.active .nav-icon {
  color: #38c3dd;
}

.admin-shell .workspace {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(24, 69, 88, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 69, 88, 0.045) 1px, transparent 1px),
    #edf4f7;
  background-size: 32px 32px, 32px 32px, auto;
}

.admin-shell .topbar {
  height: 58px;
  padding: 0 24px;
  color: #284052;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #d8e5ec;
  box-shadow: 0 8px 22px rgba(21, 55, 72, 0.08);
}

.admin-shell .merchant-switch {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #0b7e99;
  border: 1px solid #c7e4ec;
  border-radius: 8px;
  background: #eef9fc;
}

.admin-shell .logout-link {
  color: #b42318;
}

.admin-shell .page-head {
  margin: 20px 24px 0;
  padding: 20px 22px;
  border: 1px solid #d9e7ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(21, 55, 72, 0.07);
}

.admin-shell .page-head h1 {
  color: #253d50;
  font-weight: 700;
}

.admin-hero {
  min-height: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  align-items: stretch;
  gap: 0;
  margin: 24px 24px 0;
  overflow: hidden;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(135deg, #0f4859 0%, #1396b0 54%, #24548f 100%);
  background-size: 32px 32px, auto;
  box-shadow: 0 18px 34px rgba(20, 64, 82, 0.16);
}

.admin-hero > div {
  padding: 28px 30px;
}

.admin-hero span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.admin-hero h1 {
  margin: 16px 0 8px;
  font-size: 30px;
  font-weight: 800;
}

.admin-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.admin-hero aside {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(6, 34, 45, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-hero aside strong {
  font-size: 32px;
  line-height: 1.1;
}

.admin-hero aside span {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.admin-metric-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  padding: 20px 24px;
}

.admin-shell .metric,
.admin-panel,
.admin-list-panel {
  border: 1px solid #d9e7ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(21, 55, 72, 0.07);
}

.admin-shell .metric {
  min-height: 104px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  margin: 0 24px 24px;
}

.admin-dashboard-grid.lower {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.admin-panel {
  min-width: 0;
  padding: 18px;
}

.admin-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel h2 {
  margin: 0;
  color: #253d50;
  font-size: 17px;
}

.admin-panel header span {
  color: #7b91a0;
  font-size: 12px;
}

.trend-chart {
  min-height: 230px;
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 8px;
}

.trend-day {
  min-width: 0;
  display: grid;
  grid-template-rows: 172px auto auto;
  gap: 7px;
  text-align: center;
}

.trend-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  border-bottom: 1px solid #dbe7ee;
}

.trend-bars i,
.trend-bars b {
  width: 16px;
  min-height: 5px;
  display: block;
  border-radius: 4px 4px 0 0;
}

.trend-bars i {
  height: var(--gross);
  background: #1396b0;
}

.trend-bars b {
  height: var(--profit);
  background: #15a568;
}

.trend-day strong {
  color: #526879;
  font-size: 12px;
}

.trend-day span {
  color: #8aa0af;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.trend-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  color: #6d8190;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.trend-legend .gross {
  background: #1396b0;
}

.trend-legend .profit {
  background: #15a568;
}

.channel-stat-list {
  display: grid;
  gap: 12px;
}

.channel-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2edf2;
  border-radius: 8px;
  background: #f8fbfd;
}

.channel-stat-row div {
  display: grid;
  gap: 3px;
}

.channel-stat-row strong {
  color: #263f54;
}

.channel-stat-row span,
.channel-stat-row small {
  color: #7c91a0;
}

.channel-stat-row b {
  color: #263f54;
}

.channel-stat-row i {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef3;
}

.channel-stat-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1396b0;
}

.admin-detail-list div {
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 42px;
}

.admin-list-panel {
  margin: 0 24px 28px;
}

.admin-list-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-panel h2 a {
  color: #0b7e99;
  font-size: 13px;
  font-weight: 700;
}

.admin-list-panel h2 span {
  color: #7d92a2;
  font-size: 13px;
  font-weight: 400;
}

.admin-user-filter {
  padding: 16px;
  margin: 0;
  border-bottom: 1px solid #e4eef3;
}

.admin-user-filter input {
  min-width: min(360px, 100%);
}

.admin-users-table th,
.admin-users-table td {
  white-space: nowrap;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #455f72;
  font-weight: 800;
  white-space: nowrap;
}

.sort-link span {
  min-width: 12px;
  color: #8ca0ae;
  font-size: 12px;
  line-height: 1;
}

.sort-link:hover,
.sort-link.active {
  color: #0b7e99;
}

.sort-link.active span {
  color: #0b7e99;
}

.telegram-contact {
  display: grid;
  gap: 4px;
}

.admin-contact-cell {
  min-width: 150px;
  display: grid;
  gap: 5px;
}

.admin-contact-cell > strong {
  color: #263f54;
}

.admin-contact-cell > small {
  color: #7d92a2;
}

.telegram-link {
  color: #0b84b5;
  font-weight: 800;
}

.telegram-link:hover {
  color: #086a91;
}

.amount-text {
  color: #263f54;
  font-weight: 800;
}

.status-pill {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.paid {
  color: #0e7d3b;
  background: #e5f7ec;
}

.status-pill.pending {
  color: #956100;
  background: #fff4d8;
}

.status-pill.refund {
  color: #b42318;
  background: #fff0f0;
}

.inline-form.refund-action-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 6px;
  min-width: 230px;
  margin: 0;
}

.refund-action-form input {
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #cddbe3;
  border-radius: 4px;
  font: inherit;
}

.refund-action-form small,
.refund-action-note small {
  display: block;
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #8da0ad;
}

.refund-action-form.is-armed {
  padding: 6px;
  border: 1px solid #f2b8ba;
  border-radius: 6px;
  background: #fff7f7;
}

.refund-action-form.is-armed .danger-button {
  background: #b42318;
}

.refund-action-form.is-armed small {
  color: #b42318;
  font-weight: 700;
}

.refund-action-note {
  display: grid;
  gap: 3px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 96px;
}

.order-actions .detail-button {
  min-height: 26px;
  height: 26px;
  padding: 0 8px;
  color: #fff;
  border-color: #18a8cf;
  background: #18a8cf;
  font-weight: 800;
}

.order-actions .detail-button:hover {
  color: #fff;
  border-color: #0c8eb0;
  background: #0c8eb0;
}

.order-actions .compact-refund-form {
  display: inline-grid;
  grid-template-columns: auto;
  min-width: 0;
}

.order-actions .compact-refund-form .danger-button {
  min-height: 26px;
  height: 26px;
  min-width: 44px;
  padding: 0 8px;
  border-radius: 4px;
}

.order-actions .compact-refund-form small {
  display: none;
}

.order-actions .compact-refund-form.is-armed {
  padding: 0;
  border: 0;
  background: transparent;
}

.order-actions .compact-refund-form.is-armed .danger-button {
  background: #b42318;
}

.order-detail-dialog dl {
  grid-template-columns: 1fr;
}

.user-orders-table tbody tr {
  transition: background 0.15s ease;
}

.user-orders-table tbody tr:hover {
  background: #f7fbfd;
}

.user-orders-table td:first-child strong {
  color: #173247;
  font-size: 13px;
}

.user-orders-table .pay-method {
  white-space: nowrap;
}

.compact-empty {
  margin: 0;
  padding: 16px;
}

@media (max-width: 1180px) {
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

@media (max-width: 760px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell .sidebar {
    min-height: auto;
  }

  .admin-shell .topbar {
    padding: 0 14px;
  }

  .admin-hero {
    grid-template-columns: 1fr;
    margin: 16px 12px 0;
  }

  .admin-hero aside {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .admin-shell .page-head,
  .admin-dashboard-grid,
  .admin-list-panel {
    margin-left: 12px;
    margin-right: 12px;
  }

  .admin-metric-grid {
    grid-template-columns: 1fr;
    padding-left: 12px;
    padding-right: 12px;
  }

  .trend-chart {
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    gap: 6px;
    overflow-x: auto;
  }

  .trend-day {
    grid-template-rows: 150px auto auto;
  }
}

.admin-two-columns {
  margin: 20px;
}

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

.admin-form-grid label {
  display: grid;
  gap: 6px;
  color: #526879;
}

.admin-form-grid input,
.admin-form-grid select {
  width: 100%;
}

.admin-submit {
  margin-left: 0;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 16px;
}

.admin-filter input,
.admin-filter select {
  min-height: 36px;
  border: 1px solid #cfdbe3;
  background: #fff;
  padding: 0 12px;
}

.admin-filter input {
  min-width: 240px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cfdbe3;
  color: #28435f;
  background: #fff;
  text-decoration: none;
}

.password-reset {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf2f5;
}

.muted {
  color: #7f92a0;
}

.data-table,
.doc-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table {
  table-layout: fixed;
}

.data-table th,
.data-table td,
.doc-table th,
.doc-table td {
  padding: 12px 14px;
  border: 1px solid #e2e9ee;
  text-align: left;
  vertical-align: top;
}

.data-table th,
.doc-table th {
  color: #637282;
  background: #f7fafb;
}

.doc-table th {
  width: 136px;
}

.doc-table td {
  overflow-wrap: anywhere;
}

.data-table small {
  display: block;
  margin-top: 4px;
  color: #8da0ad;
}

.empty {
  color: #8da0ad;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
}

.status.paid {
  color: #0e7d3b;
  background: #e5f7ec;
}

.status.pending {
  color: #956100;
  background: #fff4d8;
}

.status.refund {
  color: #8b3a3a;
  background: #ffe8e8;
}

.form-stack {
  display: grid;
  gap: 13px;
}

.form-stack label {
  display: grid;
  gap: 6px;
  color: #6c7f8d;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d8e2e8;
  border-radius: 3px;
  font: inherit;
}

.primary-button {
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: var(--cyan-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-button.as-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

.inline-form {
  display: inline;
  margin: 0;
}

.table-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cddbe3;
  border-radius: 4px;
  color: #3c5363;
  background: #fff;
  cursor: pointer;
}

.table-button:hover {
  color: #0c8eb0;
  border-color: #82cfe1;
}

.flow-list {
  margin: 0;
  padding-left: 20px;
  color: #657887;
  line-height: 1.9;
}

.doc-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}

.doc-layout .full {
  grid-column: 1 / -1;
}

.doc-hero p {
  margin: 0;
  color: #627789;
  line-height: 1.8;
}

.cashier-layout {
  max-width: 680px;
}

.cashier-panel {
  text-align: center;
}

.cashier-money {
  margin: 18px 0;
  color: #16a3c3;
  font-size: 42px;
  font-weight: 300;
}

.cashier-money span {
  margin-left: 4px;
  color: #8da0ad;
  font-size: 16px;
}

.cashier-cta {
  justify-content: center;
  width: 180px;
}

.local-cashier-body {
  min-height: 100vh;
  margin: 0;
  background: #f3f7ff;
  color: #3c4148;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.local-cashier {
  width: min(440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22vh 0 56px;
  text-align: center;
}

.local-cashier-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.local-cashier-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #2378f7;
  font-size: 30px;
  font-weight: 800;
}

.local-cashier-brand strong {
  color: #3b3b3b;
  font-size: 36px;
  font-weight: 700;
}

.local-cashier-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 65, 114, 0.08);
}

.amount-card {
  padding: 34px 24px 32px;
}

.amount-card p,
.qr-card p {
  margin: 0;
  color: #8b929c;
  font-size: 15px;
}

.amount-card h1 {
  margin: 16px 0 8px;
  color: #2378f7;
  font-size: 56px;
  line-height: 1;
}

.amount-card h2 {
  margin: 0 0 18px;
  color: #4e5660;
  font-size: 16px;
  font-weight: 500;
}

.local-order-no {
  display: inline-flex;
  max-width: 100%;
  min-height: 36px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid #b8d8ff;
  border-radius: 18px;
  color: #1670f5;
  background: #eef7ff;
  overflow-wrap: anywhere;
}

.qr-card {
  margin-top: 26px;
  padding: 32px 24px 30px;
}

.local-qr-frame {
  width: 232px;
  height: 232px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  padding: 12px;
  border-radius: 10px;
  background: #f1f8ff;
}

.local-qr-frame img {
  width: 208px;
  height: 208px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.local-qr-missing {
  width: 232px;
  height: 232px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 10px;
  color: #8b929c;
  background: #f1f8ff;
}

.qr-card h3 {
  margin: 0 0 12px;
  color: #1670f5;
  font-size: 17px;
}

.local-cashier-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  color: #7d8fa8;
  font-size: 13px;
}

.local-cashier-footer a {
  color: #1670f5;
}

.local-cashier-footer i {
  width: 1px;
  height: 13px;
  background: #cbd5e1;
}

pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #263746;
  background: #f5f8fa;
  border: 1px solid #e1e9ee;
  border-radius: 4px;
  line-height: 1.55;
}

.doc-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  background: #fff;
}

.doc-sidebar {
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
}

.doc-logo {
  height: 130px;
  padding: 28px 28px 0;
  color: #17427a;
  font-size: 28px;
  font-weight: 800;
}

.doc-logo span {
  color: #ff7d00;
}

.doc-menu-title {
  height: 40px;
  padding-left: 28px;
  color: #009a86;
  border-top: 1px solid #eee;
  border-bottom: 2px solid #5abf8a;
  line-height: 40px;
}

.doc-sidebar nav {
  display: grid;
  padding: 14px 0;
}

.doc-sidebar nav a {
  min-height: 32px;
  padding-left: 40px;
  color: #334155;
  line-height: 32px;
}

.doc-sidebar nav a.active,
.doc-sidebar nav a:hover {
  color: #36aa64;
  background: #f0f0f0;
  border-right: 4px solid #6ac891;
}

.doc-tree {
  gap: 0;
}

.doc-nav-group {
  display: grid;
}

.doc-nav-parent span {
  display: inline-block;
  width: 16px;
  margin-left: -18px;
  transition: transform 0.15s ease;
}

.doc-nav-group.open .doc-nav-parent span {
  transform: rotate(90deg);
}

.doc-subnav {
  display: none;
}

.doc-nav-group.open .doc-subnav {
  display: grid;
}

.doc-subnav a {
  padding-left: 50px !important;
  font-size: 14px;
}

.doc-red {
  color: #ff3b1f;
}

.doc-main {
  padding: 24px 16px 80px;
  overflow: hidden;
}

.doc-article {
  max-width: 1180px;
  margin: 0 auto;
}

.doc-article h1 {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: #202833;
  font-size: 36px;
}

.doc-article h2 {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  color: #202833;
  font-size: 28px;
}

.doc-section {
  color: #1f2937;
  font-size: 16px;
  line-height: 2;
}

.doc-section p {
  margin: 9px 0;
}

.doc-spec {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.7;
}

.doc-spec th,
.doc-spec td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.doc-link {
  color: #008cff;
}

.doc-shell-body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #1f2937;
}

.doc-navbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 73px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.doc-navbar-body {
  position: relative;
  height: 100%;
}

.doc-brand-logo {
  position: absolute;
  top: 18px;
  left: 16px;
  color: #17427a;
  font-size: 24px;
  font-weight: 800;
}

.doc-brand-logo span {
  color: #ff7d00;
}

.doc-return {
  position: absolute;
  right: 16px;
  bottom: 0;
  padding: 0 14px 14px;
  border-bottom: 5px solid #62bd83;
  color: #333;
}

.doc-sidebar-fixed {
  position: fixed;
  z-index: 10;
  top: 73px;
  bottom: 0;
  left: 0;
  width: 294px;
  overflow: auto;
}

.doc-sidebar-fixed .doc-menu-title {
  height: 40px;
  padding-left: 28px;
  border-top: 0;
  border-bottom: 2px solid #5abf8a;
  line-height: 40px;
}

.doc-sidebar-fixed nav {
  padding-top: 12px;
}

.doc-sidebar-fixed nav a {
  min-height: 32px;
  padding-left: 28px;
  color: #334155;
  font-size: 15px;
  line-height: 32px;
}

.doc-sidebar-fixed .doc-subnav a {
  padding-left: 42px !important;
}

.doc-sidebar-fixed nav a.active,
.doc-sidebar-fixed nav a:hover {
  color: #43b36c;
  background: #f0f0f0;
  border-right: 4px solid #6ac891;
}

.doc-copyright {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 20px;
  color: #64748b;
}

.doc-main-fixed {
  margin-left: 294px;
  padding: 96px 16px 80px;
}

.doc-upstream-content {
  max-width: none;
  margin: 0;
}

.doc-upstream-content h1 {
  margin: 0;
  padding: 18px 0 26px;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: #202833;
  font-size: 36px;
  line-height: 1.25;
}

.doc-upstream-content h1 a,
.doc-upstream-content h2 a,
.doc-upstream-content h3 a,
.doc-upstream-content h4 a {
  color: inherit;
}

.doc-upstream-content h2 {
  margin: 26px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  color: #202833;
  font-size: 28px;
  line-height: 1.35;
}

.doc-upstream-content h3 {
  margin: 24px 0 14px;
  color: #202833;
  font-size: 26px;
}

.doc-upstream-content h4 {
  margin: 24px 0 12px;
  color: #202833;
  font-size: 22px;
  line-height: 1.4;
}

.doc-upstream-content p {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.75;
}

.doc-upstream-content blockquote {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 4px solid #62bd83;
  background: #fafafa;
}

.doc-upstream-content table {
  width: 100%;
  margin: 12px 0 24px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.doc-upstream-content th,
.doc-upstream-content td {
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
}

.doc-upstream-content th {
  background: #fafafa;
  color: #1f2937;
  font-weight: 700;
}

.doc-upstream-content code {
  color: #ff3b1f;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

.doc-upstream-content a {
  color: #008cff;
}

.paypage-body {
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f0f0f0;
  color: #000;
  text-align: center;
  font-family: "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", sans-serif;
  user-select: none;
}

.paypage-body * {
  box-sizing: border-box;
}

.paypage-body .none {
  display: none !important;
}

.paypage-wrap {
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.paypage-content {
  flex: 1;
  position: relative;
  overflow: auto;
}

.paypage-merchant {
  margin: 20px;
  text-align: left;
}

.paypage-merchant table {
  border-collapse: collapse;
}

.sico-pay {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin: 5px 5px 10px;
  place-items: center;
  border-radius: 50%;
  background: #1185f8;
}

.sico-pay::before {
  content: "";
  width: 18px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 4px;
}

.sico-pay::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  bottom: 12px;
  border-radius: 3px;
  background: #fff;
}

.selTitle {
  color: #666;
  font-size: 19px;
  vertical-align: middle;
}

.set_amount {
  position: relative;
  margin: 20px 15px 0;
  padding: 10px 10px 5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 1px #ebebeb;
}

.payMoney {
  margin-bottom: 10px;
  color: #b7b7b7;
  text-align: left;
  font-size: 18px;
}

.marLeft10 {
  margin-left: 10px;
}

.amount_bd {
  height: 50px;
  line-height: 50px;
  text-align: left;
}

.i_money {
  float: left;
  height: 50px;
  padding-right: 5px;
  color: #444;
  font-family: Arial, sans-serif;
  font-size: 24px;
}

.input_simu {
  float: left;
  height: 50px;
  color: #444;
  font-family: HelveticaNeue, Arial, sans-serif;
  font-size: 34px;
}

.line_simu {
  float: left;
  width: 1px;
  height: 40px;
  margin-top: 5px;
  background: #4182e2;
  animation: payFlash 1s ease-in-out infinite;
}

@keyframes payFlash {
  50% {
    opacity: 0;
  }
}

#clearBtn {
  position: absolute;
  right: 12px;
  bottom: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d2d2d2;
}

#clearBtn::before,
#clearBtn::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 5px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

#clearBtn::before {
  transform: rotate(45deg);
}

#clearBtn::after {
  transform: rotate(-45deg);
}

.set_remark {
  margin: 12px 16px;
  text-align: left;
  color: #999;
  font-size: 13px;
}

.remark_operate {
  display: inline-block;
}

.remark_operate a {
  color: #999;
  margin-left: 8px;
  text-decoration: underline;
}

.remark_edit,
.remark_clear_away {
  display: none;
}

.remark_operate.yes .remark_add {
  display: none;
}

.remark_operate.yes .remark_edit,
.remark_operate.yes .remark_clear_away {
  display: inline;
}

.keyboard {
  width: 100%;
  background: #fff;
}

.key_table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.key_table td {
  height: 62px;
  border: 0;
  color: #444;
  text-align: center;
  vertical-align: middle;
  font-size: 36px;
  cursor: pointer;
}

.key_table td:active {
  background: #f2f2f2;
}

.border {
  position: relative;
}

.border::after {
  content: "";
  position: absolute;
  inset: 0 -100% -100% 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: 0 0;
}

.b_btm::after {
  border-bottom: 1px solid #d5d5d5;
}

.b_rgt::after {
  border-right: 1px solid #d5d5d5;
}

.b_rgt_btm::after {
  border-right: 1px solid #d5d5d5;
  border-bottom: 1px solid #d5d5d5;
}

.clear-key {
  background: #fff;
  font-size: 0 !important;
}

.clear-key::before {
  content: "⌫";
  color: #666;
  font-size: 28px;
}

.pay_btn {
  background: #1185f8;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.2;
}

.pay_btn em {
  display: block;
  font-size: 20px;
}

.pay_btn.disable {
  background: #8fc5ff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
}

.modal.show {
  display: flex;
}

.modal-content {
  width: min(330px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
}

.modal-header .title {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.modal-header .close {
  color: #999;
  font-size: 26px;
  cursor: pointer;
}

.modal-body {
  padding: 14px;
}

.modal-body textarea {
  width: 100%;
  min-height: 78px;
  resize: none;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  outline: none;
}

.modal-body button {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 4px;
  background: #1185f8;
  color: #fff;
  font-size: 15px;
}

.remark-tip {
  display: none;
  margin-top: 8px;
  color: #e84545;
  font-size: 12px;
}

.paypage-ad {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.5;
}

.paypage-ad a {
  color: #7d8fa8;
  text-decoration: none;
}

.paypage-ad i {
  width: 1px;
  height: 12px;
  background: #d2d2d2;
}

.pay-toast,
.pay-loading {
  position: fixed;
  z-index: 80;
  top: 42%;
  left: 50%;
  min-width: 150px;
  max-width: 280px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 14px 18px;
  line-height: 1.6;
}

.pay-loading {
  display: none;
}

.pay-loading.show {
  display: block;
}

.pay-error {
  width: min(340px, calc(100vw - 32px));
  margin: 120px auto 0;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pay-error h1 {
  margin: 0 0 12px;
  font-size: 22px;
}

.jump-body {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 15px;
  text-align: center;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 186px minmax(0, 1fr);
  }

  .metric-grid,
  .dashboard-grid,
  .two-columns,
  .doc-layout,
  .doc-body {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .doc-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  body.sidebar-collapsed .sidebar {
    display: block;
  }

  .metric-grid,
  .dashboard-grid,
  .content-band {
    margin: 0;
    padding: 12px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric strong {
    font-size: 24px;
  }

  .welcome-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .plain-panel,
  .content-band {
    min-width: 0;
  }

  .doc-table th,
  .doc-table td {
    padding: 9px 8px;
  }

  .doc-table th {
    width: 92px;
  }

  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .login-screen {
    padding: 24px 12px;
  }

  .login-card,
  .mini-card {
    width: 100%;
  }

  .telegram-code-row {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .security-settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-form-row,
  .copy-line {
    grid-template-columns: 1fr;
  }

  .support-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .support-button {
    width: 100%;
  }

  .support-url-line {
    grid-template-columns: 1fr;
  }

  .api-form-row > label,
  .api-actions,
  .wide-purple {
    margin-left: 0;
    text-align: left;
  }

  .doc-main {
    padding: 12px;
  }
}

/* Merchant UI refresh, scoped away from the admin backend. */
.merchant-login-screen {
  align-items: center;
  justify-items: center;
  padding: 42px 16px;
  background: linear-gradient(180deg, #eef8fb 0%, #f7fbfd 56%, #edf4f7 100%);
}

.merchant-login-screen .login-card {
  width: min(440px, calc(100vw - 32px));
  min-height: 0;
  padding: 34px 32px 28px;
  border: 1px solid #d7e6ed;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(30, 61, 76, 0.14);
}

.merchant-login-screen .login-card h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #183b5b;
  font-size: 29px;
  line-height: 1.2;
}

.merchant-login-screen .login-card h1 span {
  width: 42px;
  height: 42px;
  margin-right: 0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(255, 149, 31, 0.22);
}

.merchant-login-screen .login-pill {
  width: fit-content;
  min-width: 120px;
  height: 28px;
  margin: 12px auto 28px;
  padding: 0 16px;
  color: #2c587a;
  border-color: #bcd7ea;
  border-radius: 14px;
  background: #edf7ff;
  font-size: 13px;
}

.merchant-login-screen .login-card form {
  gap: 18px;
}

.merchant-login-screen .login-card label {
  gap: 8px;
  color: #28475f;
  font-weight: 700;
}

.merchant-login-screen .login-card input {
  height: 52px;
  padding: 0 16px;
  border: 1px solid #bfd5e5;
  border-radius: 8px;
  background: #fbfdfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.merchant-login-screen .login-card input:focus {
  border-color: #21afd0;
  outline: 3px solid rgba(33, 175, 208, 0.14);
  background: #fff;
}

.merchant-login-screen .telegram-code-row {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.merchant-login-screen .telegram-code-row a,
.merchant-login-screen .telegram-code-row span,
.merchant-login-screen .telegram-code-row button {
  height: 52px;
  border-color: #b7d4e7;
  border-radius: 8px;
  color: #245270;
  background: #eef7ff;
}

.merchant-login-screen .login-card button[type="submit"] {
  height: 52px;
  margin-top: 2px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #1faeca;
  box-shadow: 0 10px 22px rgba(31, 174, 202, 0.22);
}

.merchant-login-screen .login-card button[type="submit"]:hover {
  background: #159bbc;
}

.merchant-login-screen .telegram-help,
.merchant-login-screen .login-card footer,
.merchant-login-screen .auth-switch {
  color: #71869a;
}

.merchant-login-screen .auth-switch {
  margin-top: 18px;
}

.merchant-login-screen .auth-switch a {
  color: #0d91b2;
}

.merchant-shell-body {
  background: #f1f6f8;
}

.merchant-shell {
  grid-template-columns: 216px minmax(0, 1fr);
  background: #f1f6f8;
}

.merchant-shell .sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  background: #172d38;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.merchant-shell .brand {
  height: 56px;
  padding: 0 20px;
  background: #24b4cf;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.merchant-shell .brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
}

.merchant-shell .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 16px;
}

.merchant-shell .nav-group-title {
  padding: 18px 16px 8px;
  color: #75a0b7;
  font-size: 12px;
}

.merchant-shell .nav-item {
  height: 44px;
  gap: 14px;
  padding: 0 18px;
  color: #a7c2d2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.merchant-shell .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
}

.merchant-shell .nav-item:hover,
.merchant-shell .nav-item.active {
  color: #fff;
  background: #10232d;
}

.merchant-shell .nav-item.active::before {
  background: #26c8e5;
}

.merchant-shell .nav-item.active .nav-icon {
  color: #5bd3e7;
}

.merchant-shell .sub-nav-wrap {
  padding: 6px 0 12px 50px;
  background: #10232d;
}

.merchant-shell .sub-nav {
  color: #98b8c9;
}

.merchant-shell .progress-list {
  padding: 22px 18px;
}

.merchant-shell .progress {
  background: rgba(255, 255, 255, 0.08);
}

.merchant-shell .workspace {
  background: #eef4f6;
}

.merchant-shell .topbar {
  height: 56px;
  padding: 0 18px 0 22px;
  background: #24b4cf;
  box-shadow: 0 1px 0 rgba(14, 76, 95, 0.18);
}

.merchant-shell .icon-button {
  border-radius: 6px;
}

.merchant-shell .icon-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.merchant-shell .merchant-switch {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: #fff;
}

.merchant-shell .logout-link {
  color: rgba(255, 255, 255, 0.9);
}

.merchant-shell .topbar-bag {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #5f8df7;
  box-shadow: 0 8px 18px rgba(61, 114, 230, 0.25);
}

.merchant-shell .page-head {
  padding: 24px 28px 22px;
  border-bottom-color: #d8e4ea;
  background: #f9fcfd;
}

.merchant-shell .page-head h1 {
  color: #324d63;
  font-size: 25px;
  font-weight: 500;
}

.merchant-shell .page-head p {
  margin-top: 4px;
  color: #7b8f9e;
}

.merchant-shell .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
  gap: 16px;
  padding: 20px 28px;
}

.merchant-shell .metric {
  min-height: 104px;
  position: relative;
  overflow: hidden;
  border-color: #dce8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(34, 65, 82, 0.05);
}

.merchant-shell .metric::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #d8e6ed;
}

.merchant-shell .metric.purple::after {
  background: #7d6be8;
}

.merchant-shell .metric.green::after {
  background: #18aa57;
}

.merchant-shell .metric.blue::after {
  background: #1faeca;
}

.merchant-shell .metric.dark::after {
  background: #40586a;
}

.merchant-shell .metric strong {
  font-size: 30px;
  font-weight: 400;
}

.merchant-shell .metric p {
  color: #7f93a2;
}

.merchant-shell .dashboard-grid {
  grid-template-columns: minmax(420px, 0.95fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0 28px 30px;
}

.merchant-shell .welcome-panel,
.merchant-shell .channel-panel,
.merchant-shell .content-band,
.merchant-shell .plain-panel,
.merchant-shell .profile-panel,
.merchant-shell .list-panel,
.merchant-shell .mini-card,
.merchant-shell .channel-brief-panel,
.merchant-shell .support-card {
  border-color: #d8e4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 65, 82, 0.06);
}

.merchant-shell .welcome-actions {
  height: 88px;
  padding: 27px 32px 0;
  background: #22b2cf;
}

.merchant-shell .pill-button {
  min-height: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.16);
}

.merchant-shell .welcome-card {
  min-height: 148px;
}

.merchant-shell .avatar-bag {
  top: -41px;
  width: 88px;
  height: 88px;
  border-width: 4px;
  background: #5f8df7;
  box-shadow: 0 12px 24px rgba(61, 114, 230, 0.2);
  font-size: 44px;
}

.merchant-shell .welcome-card h2 {
  color: #526879;
  font-size: 28px;
}

.merchant-shell .welcome-card p {
  color: #526879;
  font-size: 16px;
}

.merchant-shell .income-strip {
  background: #f7fafc;
}

.merchant-shell .income-strip strong {
  color: #7d91a0;
  font-weight: 500;
}

.merchant-shell .channel-panel {
  overflow: hidden;
}

.merchant-shell .channel-panel header {
  height: 42px;
  background: #f9fcfd;
}

.merchant-shell .channel-table > div {
  min-height: 42px;
  padding: 0 18px;
  border-color: #e1eaf0;
}

.merchant-shell .content-band,
.merchant-shell .profile-panel,
.merchant-shell .list-panel,
.merchant-shell .mini-card {
  margin: 20px 28px;
}

.merchant-shell .content-band {
  padding: 20px;
}

.merchant-shell .quick-start-panel {
  margin: 0 28px 32px;
  border-color: #d8e4ea;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 65, 82, 0.06);
}

.merchant-shell .channel-brief-panel {
  margin: 0 28px 34px;
  border-radius: 8px;
}

.merchant-shell .profile-panel {
  padding: 0 28px 30px;
}

.merchant-shell .profile-tabs {
  max-width: 540px;
}

.merchant-shell .profile-tabs a {
  border-color: #d7e3eb;
  background: #f8fbfc;
}

.merchant-shell .profile-tabs a.active {
  color: #0d8fac;
  background: #fff;
}

.merchant-shell input,
.merchant-shell select,
.merchant-shell textarea {
  border: 1px solid #cfdde6;
  border-radius: 6px;
  background: #fff;
  color: #2f4659;
  font-weight: 400;
}

.merchant-shell input:focus,
.merchant-shell select:focus,
.merchant-shell textarea:focus {
  border-color: #21afd0;
  outline: 3px solid rgba(33, 175, 208, 0.12);
}

.merchant-shell .copy-input input,
.merchant-shell .copy-input textarea {
  border-radius: 6px 0 0 6px;
  background: #f8fbfc;
}

.merchant-shell .copy-input button {
  border-color: #cfdde6;
  border-radius: 0 6px 6px 0;
  background: #eef5f8;
}

.merchant-shell .info-button,
.merchant-shell .danger-button,
.merchant-shell .search-button,
.merchant-shell .reset-button,
.merchant-shell .green-button,
.merchant-shell .wide-purple,
.merchant-shell .primary-button,
.merchant-shell .table-button,
.merchant-shell .support-button {
  border-radius: 6px;
}

.merchant-shell .info-button,
.merchant-shell .primary-button.as-link,
.merchant-shell .support-button {
  background: #21afd0;
}

.merchant-shell .wide-purple,
.merchant-shell .search-button {
  background: #5f65c8;
}

.merchant-shell .green-button {
  background: #1dac55;
}

.merchant-shell .filter-row {
  gap: 8px;
  padding: 20px 16px;
}

.merchant-shell .data-table th,
.merchant-shell .data-table td {
  border-color: #e1eaf0;
  padding: 12px 14px;
}

.merchant-shell .data-table th {
  color: #344c61;
  background: #f8fbfc;
  font-weight: 700;
}

.merchant-shell .list-panel h2,
.merchant-shell .mini-card h2 {
  padding: 15px 16px;
  color: #24384a;
  background: #fbfdfe;
}

.merchant-shell .help-note,
.merchant-shell .withdraw-note {
  border-radius: 6px;
}

.merchant-shell .support-card {
  padding: 24px 20px;
}

.merchant-shell .support-badge {
  border-radius: 8px;
  background: #21afd0;
}

@media (min-width: 641px) {
  body.merchant-shell-body.sidebar-collapsed .merchant-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  body.merchant-shell-body.sidebar-collapsed .merchant-shell .brand {
    justify-content: center;
    padding: 0;
  }

  body.merchant-shell-body.sidebar-collapsed .merchant-shell .brand strong,
  body.merchant-shell-body.sidebar-collapsed .merchant-shell .nav-item span:not(.nav-icon),
  body.merchant-shell-body.sidebar-collapsed .merchant-shell .nav-item em,
  body.merchant-shell-body.sidebar-collapsed .merchant-shell .nav-group-title,
  body.merchant-shell-body.sidebar-collapsed .merchant-shell .sub-nav-wrap,
  body.merchant-shell-body.sidebar-collapsed .merchant-shell .progress-list {
    display: none;
  }

  body.merchant-shell-body.sidebar-collapsed .merchant-shell .nav-item {
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 1180px) {
  .merchant-shell .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .channel-brief-body,
  .channel-brief-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .merchant-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .merchant-shell .metric-grid,
  .merchant-shell .dashboard-grid,
  .merchant-shell .quick-start-panel,
  .merchant-shell .channel-brief-panel,
  .merchant-shell .content-band,
  .merchant-shell .profile-panel,
  .merchant-shell .list-panel,
  .merchant-shell .mini-card {
    margin-left: 18px;
    margin-right: 18px;
  }

  .merchant-shell .metric-grid {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 640px) {
  .merchant-login-screen .login-card {
    padding: 28px 20px 24px;
  }

  .merchant-login-screen .login-card h1 {
    font-size: 25px;
  }

  .merchant-login-screen .telegram-code-row {
    grid-template-columns: 1fr;
  }

  .merchant-shell {
    grid-template-columns: 1fr;
  }

  body.merchant-shell-body.sidebar-collapsed .merchant-shell .sidebar {
    display: block;
  }

  .merchant-shell .topbar {
    height: 52px;
    padding: 0 12px;
  }

  .merchant-shell .page-head {
    padding: 20px 16px;
  }

  .merchant-shell .metric-grid,
  .merchant-shell .dashboard-grid,
  .merchant-shell .content-band,
  .merchant-shell .profile-panel,
  .merchant-shell .list-panel,
  .merchant-shell .mini-card,
  .merchant-shell .channel-brief-panel {
    margin: 0;
  }

  .merchant-shell .metric-grid,
  .merchant-shell .dashboard-grid,
  .merchant-shell .quick-start-panel,
  .merchant-shell .channel-brief-panel {
    padding: 14px;
  }

  .quick-start-panel header,
  .quick-start-grid,
  .channel-brief-hero,
  .channel-brief-body,
  .channel-brief-facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-start-panel header {
    gap: 6px;
  }

  .channel-brief-hero > div {
    padding: 20px;
  }

  .channel-brief-hero aside {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .merchant-shell .content-band,
  .merchant-shell .profile-panel,
  .merchant-shell .list-panel,
  .merchant-shell .mini-card {
    border-radius: 0;
  }

  .merchant-shell .api-form-row {
    grid-template-columns: 1fr;
  }

  .merchant-shell .api-form-row > label,
  .merchant-shell .api-actions,
  .merchant-shell .wide-purple {
    margin-left: 0;
    text-align: left;
  }
}

/* Merchant tech polish v2. */
.merchant-login-screen {
  background-color: #eef5f8;
  background-image:
    linear-gradient(rgba(39, 177, 205, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 177, 205, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.merchant-login-screen .login-card {
  border-color: rgba(31, 174, 202, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(26, 56, 76, 0.16);
}

.merchant-login-screen .telegram-guide {
  margin: -8px 0 18px;
  border-color: #d6e7ef;
  background: #f7fbfd;
}

.merchant-login-screen .telegram-guide-button {
  display: none;
}

.auth-bot-entry {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #cbe4ef;
  border-radius: 8px;
  color: #1f5572;
  background: #f4fbff;
}

.auth-bot-entry span {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: #229ed9;
}

.auth-bot-entry strong {
  min-width: 0;
  color: #1d435f;
}

.auth-bot-entry em {
  color: #1282b5;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.auth-bot-entry:hover {
  border-color: #22b2cf;
  background: #eefaff;
}

.auth-bot-entry.muted {
  color: #71869a;
  background: #f1f5f8;
}

.merchant-shell-body {
  background-color: #eef4f7;
}

.merchant-shell .workspace {
  background-image:
    linear-gradient(rgba(26, 78, 100, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 78, 100, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.merchant-shell .sidebar {
  background: #10202b;
  border-right: 1px solid #193748;
  box-shadow: 16px 0 34px rgba(14, 28, 38, 0.08);
}

.merchant-shell .brand,
.merchant-shell .topbar {
  background: linear-gradient(90deg, #13b6c9 0%, #1597c9 100%);
}

.merchant-shell .brand {
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.merchant-shell .brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.merchant-shell .topbar {
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 26px rgba(15, 82, 112, 0.13);
}

.merchant-shell .icon-button {
  border-radius: 8px;
}

.merchant-shell .icon-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.merchant-shell .topbar-bag {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 23px;
}

.merchant-shell .nav-group-title {
  padding: 17px 18px 8px;
  color: #6fa4ba;
  letter-spacing: 0;
}

.merchant-shell .nav-item {
  height: 46px;
  margin: 1px 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
}

.merchant-shell .nav-item::before {
  content: "";
  width: 3px;
  height: 18px;
  position: absolute;
  left: 0;
  border-radius: 3px;
  background: transparent;
}

.merchant-shell .nav-item:hover,
.merchant-shell .nav-item.active {
  background: #173343;
}

.merchant-shell .nav-item.active::before {
  background: #27c3df;
}

.merchant-shell .nav-icon,
.merchant-shell .nav-item.active .nav-icon {
  color: #6bd6f0;
}

.merchant-shell .nav-item em {
  border-radius: 999px;
  background: #27c3df;
}

.merchant-shell .sub-nav-wrap {
  margin: 0 8px;
  padding-left: 48px;
  border-radius: 8px;
  background: #132b39;
}

.merchant-shell .progress-list {
  padding: 20px 18px;
}

.merchant-shell .page-head {
  padding: 26px 28px 24px;
  border-bottom-color: #d7e4ea;
  background: rgba(247, 251, 253, 0.92);
}

.merchant-shell .page-head h1 {
  color: #1d3446;
  font-size: 26px;
  font-weight: 500;
}

.merchant-shell .metric {
  border-color: #d6e5ec;
  background: rgba(255, 255, 255, 0.96);
}

.merchant-shell .metric::after {
  width: 100%;
  height: 3px;
  right: 0;
  bottom: auto;
}

.merchant-shell .metric strong {
  color: #20384c;
}

.merchant-shell .metric.purple strong {
  color: #435ce8;
}

.merchant-shell .metric.green strong {
  color: #13a85b;
}

.merchant-shell .metric.blue strong {
  color: #119fd0;
}

.merchant-shell .metric.dark strong {
  color: #263f54;
}

.merchant-shell .welcome-panel,
.merchant-shell .channel-panel,
.merchant-shell .content-band,
.merchant-shell .plain-panel,
.merchant-shell .profile-panel,
.merchant-shell .list-panel,
.merchant-shell .mini-card,
.merchant-shell .support-card,
.merchant-shell .quick-start-panel,
.merchant-shell .channel-brief-panel {
  border-color: #d6e5ec;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(23, 54, 72, 0.08);
}

.merchant-shell .welcome-actions {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, #12adc7 0%, #1599c8 100%);
  background-size: 28px 28px, auto;
}

.merchant-shell .avatar-bag {
  background: linear-gradient(135deg, #1bbad2 0%, #4b73f2 100%);
}

.merchant-shell .channel-panel header,
.merchant-shell .list-panel h2,
.merchant-shell .mini-card h2 {
  background: #f6fbfd;
}

.merchant-shell input,
.merchant-shell select,
.merchant-shell textarea,
.merchant-shell .copy-input input,
.merchant-shell .copy-input textarea {
  background: #f9fcfd;
}

.merchant-shell input:focus,
.merchant-shell select:focus,
.merchant-shell textarea:focus {
  outline-color: rgba(18, 173, 199, 0.16);
}

.merchant-shell .copy-input button {
  background: #edf7fb;
}

.merchant-shell .info-button,
.merchant-shell .primary-button.as-link,
.merchant-shell .support-button {
  background: linear-gradient(180deg, #22bdd7, #1597c8);
}

.merchant-shell .wide-purple,
.merchant-shell .search-button {
  background: linear-gradient(180deg, #5569e8, #4055c9);
}

.merchant-shell .green-button {
  background: linear-gradient(180deg, #1fc66d, #13a85b);
}

.merchant-shell .reset-button,
.merchant-shell .danger-button {
  border-color: #e9c8ca;
}

.merchant-shell .data-table th {
  background: #f5fafc;
}

.merchant-shell .quick-start-grid a {
  background: #f8fcfd;
}

.merchant-shell .quick-start-grid b {
  background: linear-gradient(135deg, #13b6c9, #4055c9);
}

@media (max-width: 640px) {
  .auth-bot-entry {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .auth-bot-entry em {
    grid-column: 2;
    white-space: normal;
  }
}

/* Merchant dashboard refresh v3. */
.merchant-shell-body {
  background: #edf4f7;
}

.merchant-shell {
  grid-template-columns: 228px minmax(0, 1fr);
  background: #edf4f7;
}

.merchant-shell .workspace {
  background-color: #edf4f7;
  background-image:
    linear-gradient(rgba(20, 88, 105, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 88, 105, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

.merchant-shell .sidebar {
  width: 228px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(35, 190, 188, 0.12) 0%, rgba(35, 190, 188, 0) 24%),
    #102632;
  border-right: 1px solid rgba(93, 178, 194, 0.18);
  box-shadow: 18px 0 38px rgba(16, 38, 50, 0.1);
}

.merchant-shell .brand {
  height: 64px;
  padding: 0 18px;
  background: linear-gradient(135deg, #13b8b8 0%, #1996c7 58%, #3d6fd6 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.merchant-shell .brand strong {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.merchant-shell .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.merchant-shell .nav-group-title {
  padding: 18px 20px 8px;
  color: #83b5c4;
  font-size: 12px;
  font-weight: 700;
}

.merchant-shell .nav-item {
  height: 44px;
  margin: 3px 10px;
  padding: 0 14px;
  color: #b5ced7;
  border: 1px solid transparent;
  border-radius: 8px;
}

.merchant-shell .nav-item:hover,
.merchant-shell .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(115, 210, 220, 0.18);
}

.merchant-shell .nav-item.active {
  box-shadow: 0 10px 20px rgba(6, 20, 28, 0.16);
}

.merchant-shell .nav-item::before {
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  height: auto;
  background: transparent;
}

.merchant-shell .nav-item.active::before {
  background: #28d4c4;
}

.merchant-shell .nav-icon,
.merchant-shell .nav-item.active .nav-icon {
  color: #6ee1dc;
}

.merchant-shell .nav-item em {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #20c4c2;
  line-height: 1;
}

.merchant-shell .sub-nav-wrap {
  margin: 2px 10px 8px;
  padding: 6px 0 8px 48px;
  border: 1px solid rgba(115, 210, 220, 0.12);
  border-radius: 8px;
  background: rgba(4, 17, 25, 0.2);
}

.merchant-shell .sub-nav {
  color: #a4c7d2;
}

.merchant-shell .progress-list {
  margin: 22px 14px;
  padding: 14px;
  border: 1px solid rgba(125, 197, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.merchant-shell .progress-row {
  color: #9dc7d4;
}

.merchant-shell .progress {
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
}

.merchant-shell .progress i {
  background: linear-gradient(90deg, #28d4c4, #30a8dd);
}

.merchant-shell .progress.accent i {
  background: linear-gradient(90deg, #8f7cf5, #31b7d5);
}

.merchant-shell .topbar {
  height: 64px;
  padding: 0 20px 0 24px;
  color: #263f52;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #d8e6ed;
  box-shadow: 0 8px 24px rgba(22, 60, 78, 0.08);
  backdrop-filter: blur(10px);
}

.merchant-shell .icon-button {
  color: #19728d;
  border-radius: 8px;
}

.merchant-shell .icon-button:hover {
  background: #e8f5f7;
}

.merchant-shell .merchant-switch {
  min-height: 34px;
  padding: 0 12px;
  color: #1e4053;
  border: 1px solid #d7e7ee;
  background: #f6fbfd;
  font-weight: 800;
}

.merchant-shell .logout-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #557082;
  border-radius: 8px;
}

.merchant-shell .logout-link:hover {
  color: #103346;
  background: #f1f7fa;
}

.merchant-shell .topbar-bag {
  width: 40px;
  height: 40px;
  color: #13a8a5;
  border: 1px solid #cce8ed;
  border-radius: 8px;
  background: #eefafb;
  box-shadow: none;
}

.merchant-shell .page-head {
  position: relative;
  margin: 0;
  padding: 28px 32px 26px;
  border-bottom: 1px solid #dce9ef;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(247, 253, 253, 0.9)),
    linear-gradient(135deg, rgba(32, 196, 194, 0.1), rgba(64, 85, 201, 0.06));
}

.merchant-shell .page-head::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 20px;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #20c4c2, #4055c9);
}

.merchant-shell .page-head h1 {
  margin-top: 10px;
  color: #172f42;
  font-size: 28px;
  font-weight: 800;
}

.merchant-shell .page-head p {
  color: #60798a;
  font-size: 14px;
}

.merchant-shell .metric-grid {
  gap: 18px;
  padding: 22px 32px;
}

.merchant-shell .metric {
  min-height: 116px;
  place-items: stretch;
  align-content: center;
  padding: 18px 20px;
  border: 1px solid #d8e7ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f9fcfd 100%);
  box-shadow: 0 12px 26px rgba(23, 54, 72, 0.07);
}

.merchant-shell .metric::after {
  height: 4px;
}

.merchant-shell .metric > div {
  justify-content: flex-start;
}

.merchant-shell .metric strong {
  color: #173246;
  font-size: 31px;
  font-weight: 700;
}

.merchant-shell .metric span {
  color: #8a9eac;
}

.merchant-shell .metric p {
  margin-top: 12px;
  padding: 0;
  color: #63798a;
  text-align: left;
  font-weight: 700;
}

.merchant-shell .metric.purple strong {
  color: #435ce8;
}

.merchant-shell .metric.green strong {
  color: #12a663;
}

.merchant-shell .metric.blue strong {
  color: #099ac8;
}

.merchant-shell .metric.dark strong {
  color: #263f54;
}

.merchant-shell .dashboard-grid {
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
  gap: 20px;
  padding: 0 32px 30px;
}

.merchant-shell .welcome-panel,
.merchant-shell .channel-panel,
.merchant-shell .content-band,
.merchant-shell .plain-panel,
.merchant-shell .profile-panel,
.merchant-shell .list-panel,
.merchant-shell .mini-card,
.merchant-shell .support-card,
.merchant-shell .quick-start-panel,
.merchant-shell .channel-brief-panel {
  border: 1px solid #d8e7ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 30px rgba(23, 54, 72, 0.08);
}

.merchant-shell .welcome-panel {
  overflow: hidden;
}

.merchant-shell .welcome-actions {
  height: 86px;
  padding: 24px 30px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #16b8b5 0%, #1597c9 58%, #4055c9 100%);
  background-size: 30px 30px, auto;
}

.merchant-shell .pill-button {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.merchant-shell .welcome-card {
  min-height: 150px;
  background: #fff;
}

.merchant-shell .avatar-bag {
  width: 86px;
  height: 86px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #18b9b5 0%, #4055c9 100%);
  box-shadow: 0 18px 30px rgba(31, 92, 146, 0.2);
}

.merchant-shell .welcome-card h2 {
  color: #425b6d;
  font-size: 27px;
  font-weight: 600;
}

.merchant-shell .welcome-card p {
  color: #5f7485;
}

.merchant-shell .welcome-card strong {
  color: #13a85b;
  font-weight: 800;
}

.merchant-shell .income-strip {
  background: #f6fafc;
}

.merchant-shell .income-strip strong {
  color: #41596b;
}

.merchant-shell .income-strip p {
  color: #7890a1;
}

.merchant-shell .channel-panel {
  overflow: hidden;
}

.merchant-shell .channel-panel header {
  height: 46px;
  color: #1f394c;
  background: #f7fbfd;
  border-bottom-color: #dde9ef;
}

.merchant-shell .channel-table > div {
  min-height: 44px;
  border-color: #e3edf2;
}

.merchant-shell .quick-start-panel {
  margin: 0 32px 32px;
  padding: 20px;
}

.merchant-shell .quick-start-grid a {
  min-height: 76px;
  border-color: #d8e7ee;
  background: #fbfdfe;
}

.merchant-shell .quick-start-grid a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(23, 54, 72, 0.07);
}

.merchant-shell .quick-start-grid b {
  border-radius: 8px;
  background: linear-gradient(135deg, #20c4c2, #4055c9);
}

.merchant-shell .channel-brief-panel {
  margin: 0 32px 34px;
}

@media (min-width: 641px) {
  body.merchant-shell-body.sidebar-collapsed .merchant-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  body.merchant-shell-body.sidebar-collapsed .merchant-shell .sidebar {
    width: 78px;
  }
}

@media (max-width: 1180px) {
  .merchant-shell .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .merchant-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .merchant-shell .sidebar {
    width: 208px;
  }

  .merchant-shell .metric-grid,
  .merchant-shell .dashboard-grid,
  .merchant-shell .quick-start-panel,
  .merchant-shell .channel-brief-panel,
  .merchant-shell .content-band,
  .merchant-shell .profile-panel,
  .merchant-shell .list-panel,
  .merchant-shell .mini-card {
    margin-left: 20px;
    margin-right: 20px;
  }

  .merchant-shell .metric-grid,
  .merchant-shell .dashboard-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .merchant-shell {
    grid-template-columns: 1fr;
  }

  .merchant-shell .sidebar {
    width: 100%;
    min-height: auto;
    position: static;
  }

  .merchant-shell .topbar {
    height: 56px;
  }

  .merchant-shell .page-head {
    padding: 22px 18px;
  }

  .merchant-shell .page-head::before {
    left: 18px;
  }

  .merchant-shell .metric-grid,
  .merchant-shell .dashboard-grid,
  .merchant-shell .quick-start-panel,
  .merchant-shell .channel-brief-panel,
  .merchant-shell .content-band,
  .merchant-shell .profile-panel,
  .merchant-shell .list-panel,
  .merchant-shell .mini-card {
    margin-left: 0;
    margin-right: 0;
  }
}
