.top-right.is-in {
  gap: 10px;
  position: relative;
}
.top-right.is-in > a {
  width: auto;
  margin-right: 0;
}
.hb-bal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-right: 6px;
  white-space: nowrap;
}
.hb-wallet {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.hb-sep {
  width: 3px;
  height: 14px;
  position: relative;
  margin: 0 4px;
  flex: 0 0 3px;
}
.hb-sep:before,
.hb-sep:after {
  content: "";
  position: absolute;
  left: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #dfe3e8;
  opacity: .85;
}
.hb-sep:before { top: 1px; }
.hb-sep:after { bottom: 1px; }
.hb-mail {
  position: relative;
  width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
}
.hb-mail-svg { width: 22px; height: 22px; display: block; }
.hb-mail-n {
  position: absolute;
  top: 2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  background: #c9a40a;
  color: #1b2431;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.hb-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #dfe3e8;
  vertical-align: middle;
}
.hb-notice-back {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: start center;
  padding-top: 90px;
}
.hb-notice {
  width: 440px;
  max-width: calc(100% - 24px);
  background: #1b2431;
  color: #dfe3e8;
  border-radius: 6px;
  padding: 28px 28px 22px;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 40px #0008;
}
.hb-notice-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: #dfe3e8;
  font-size: 18px;
  cursor: pointer;
}
.hb-notice-logo { color: #f7d219; font-weight: 800; letter-spacing: .06em; margin-bottom: 10px; }
.hb-notice-ico {
  width: 88px; height: 88px; margin: 0 auto 12px;
  border-radius: 12px;
  background: #1a805e;
  color: #9ff0c8;
  font-size: 52px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.hb-notice h3 { color: #1a805e; font-size: 20px; margin: 0 0 12px; }
.hb-notice-box {
  background: #fff;
  color: #1b2431;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.hb-notice ul { text-align: left; padding-left: 0; list-style: none; font-size: 13px; line-height: 1.45; }
.hb-notice li { margin: 10px 0; padding-left: 28px; position: relative; }
.hb-notice li.bad:before { content: "✕"; position: absolute; left: 0; color: #e7353c; font-weight: 800; }
.hb-notice li.ok:before { content: "✓"; position: absolute; left: 0; color: #1a805e; font-weight: 800; }
.hb-notice-sign { margin-top: 8px; }
.hb-notice-sign b { color: #f7d219; }
.dash-muted { float: right; color: #8b98a8; font-size: 12px; font-weight: 500; }
.hb-acct { position: relative; }
.hb-acct-btn {
  height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.hb-acct-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 196px;
  background: #273142;
  border: 1px solid #313d4f;
  box-shadow: 0 8px 24px #00000066;
  z-index: 80;
  padding: 6px 0;
}
.hb-acct-drop a,
.hb-acct-drop button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #dfe3e8;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  line-height: 1.2;
}
.hb-acct-drop a:hover,
.hb-acct-drop button:hover { background: #313d4f; color: #fff; }
.hb-acct-drop [data-logout] { color: #ff8a90; }

.mbl-auth.is-in { gap: 12px; }
.hb-mbl-bal { color: #f7d219; }

.modal-back:has(.pay-modal) {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0, 0, 0, .65);
  -webkit-overflow-scrolling: touch;
}
.pay-modal.finance-modal {
  position: relative;
  width: 595px;
  max-width: calc(100% - 32px);
  min-height: calc(100vh - 72px);
  height: auto;
  max-height: none;
  margin: 0 auto;
  background: #273142;
  color: #dfe3e8;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 12px 40px #0008;
  display: flex;
  flex-direction: column;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
}
.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #1a805e;
  position: relative;
  z-index: 3;
}
.pay-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.pay-head .nsm-dialog-btn-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 4;
}
.pay-body {
  flex: 1 1 auto;
  min-height: 0;
}
.pay-warn {
  margin: 0;
  padding: 10px 16px 12px;
  background: #273142;
  color: #f7d219;
  font-size: 12px;
  line-height: 1.45;
}
.pay-warn strong { display: block; margin-bottom: 6px; font-weight: 700; }
.pay-warn p {
  margin: 0;
  color: #dfe3e8;
  font-weight: 400;
  padding-left: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23f7d219' d='M12 3a6 6 0 0 0-6 6v3.2L4.4 15.6A1 1 0 0 0 5.2 17h13.6a1 1 0 0 0 .8-1.4L18 12.2V9a6 6 0 0 0-6-6zm0 18a2.4 2.4 0 0 0 2.3-1.8H9.7A2.4 2.4 0 0 0 12 21z'/></svg>") 0 2px / 16px no-repeat;
}
.pay-warn.is-shut p { display: none; }
.pay-warn.is-shut strong { margin-bottom: 0; }
.pay-tabs {
  display: flex;
  gap: 4px;
  padding: 4px 14px 8px;
  flex-wrap: wrap;
}
.pay-tabs button {
  background: none;
  border: 0;
  color: #7f8fa4;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 8px;
}
.pay-tabs button.is-on { color: #fff; box-shadow: inset 0 -2px 0 #1a805e; }
.pay-list { overflow: visible; padding: 0 8px 24px; }
.pay-sec-h {
  color: #7f8fa4;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 8px 4px;
}
.pay-row-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #313d4f;
  padding: 12px 8px;
  text-align: left;
  color: #fff;
}
.pay-row-item:hover { background: #313d4f55; }
.pay-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 40px;
  overflow: hidden;
  background: transparent;
}
.pay-badge img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}
.pay-row-copy { display: flex; flex-direction: column; gap: 2px; }
.pay-row-copy b { font-size: 14px; font-weight: 600; }
.pay-row-copy small { color: #7f8fa4; font-size: 12px; font-weight: 400; }
.pay-inner { padding: 8px 16px 48px; position: relative; min-height: 420px; }
.pay-note { font-size: 12px; color: #9aa5b4; margin: 0 0 8px; }
.pay-desc { font-size: 12px; color: #9aa5b4; margin: 0 0 14px; }
.pay-q { color: #f7d219; font-weight: 700; padding: 0 4px; }
.pay-inner-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.pay-back {
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  color: #1a805e;
  font-size: 22px;
  line-height: 20px;
  padding: 0;
  cursor: pointer;
}
.pay-inner h3 { margin: 0; font-size: 15px; color: #fff; font-weight: 600; }
.pay-ours-copy { color: #9aa5b4; font-size: 13px; line-height: 1.5; }
.pay-tpl { display: grid; gap: 10px; }
.pay-tpl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #222c3c;
  border: 1px solid #313d4f;
  border-radius: 4px;
  color: #9aa5b4;
  font-size: 13px;
}
.pay-tpl-row b { color: #fff; font-weight: 600; }
.pay-tpl-crypto .pay-qr {
  width: 148px;
  height: 148px;
  margin: 6px auto;
  border: 1px dashed #3a4658;
  background: repeating-conic-gradient(#222c3c 0% 25%, #1b2431 0% 50%) 50% / 16px 16px;
}
.pay-tpl-bank .pay-lab input[readonly],
.pay-tpl-crypto .pay-lab input[readonly] {
  background: #1b2431;
  color: #7f8fa4;
}
.pay-lab {
  display: block;
  color: #7f8fa4;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 12px;
}
.pay-lab input,
.pay-lab select {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 4px;
  border: 0;
  border-bottom: 1px solid #313d4f;
  background: transparent;
  color: #fff;
  padding: 0 4px;
}
.pay-info {
  background: #222c3c;
  border: 1px solid #313d4f;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.pay-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.pay-info span { color: #7f8fa4; }
.pay-send {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 4px;
  background: #313d4f;
  color: #7f8fa4;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
}
.pay-send.is-off { cursor: default; }
.pay-send.is-on { background: #1a805e; color: #fff; cursor: pointer; }

.dash {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  grid-template-areas: "side main";
  min-height: calc(100vh - 73px);
  background: #edf1f5;
}
.dash-side {
  grid-area: side;
  background: #273142;
  border-right: 0;
  padding: 18px 0 32px;
}
.dash-sec {
  color: #8b98a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 16px 18px 8px;
}
.dash-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: #dfe3e8;
  font-weight: 600;
  font-size: 13px;
  position: relative;
}
button.dash-item {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: #ff8a90;
}
.dash-item:hover,
.dash-item.is-on { color: #fff; }
.dash-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #3d4a5c;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  color: #9aa5b4;
}
.dash-ico svg { width: 16px; height: 16px; }
.dash-item.is-on .dash-ico {
  background: #1a805e;
  border-color: #1a805e;
  color: #fff;
}
.dash-badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: auto;
}
.dash-badges b {
  background: #e7353c;
  color: #fff;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 2px;
  font-weight: 700;
}
.dash-badges b.hititpay { background: #e6a817; color: #1b2431; }
.dash-main { grid-area: main; background: #edf1f5; color: #2c3644; padding: 0; }
.dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 16px 28px;
  min-width: 0;
}
.dash-nav-btn,
.dash-nav-mask { display: none; }
.dash-top h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #4a5568;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c3644;
  font-size: 13px;
  margin-left: auto;
  min-width: 0;
  flex: 0 1 auto;
}
.dash-user b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.dash-ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: #d9e0ea url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4' fill='%236b7788'/><path fill='%236b7788' d='M4 20c1.5-4 14.5-4 16 0'/></svg>") center / 28px no-repeat;
}
.dash-ava.lg { width: 88px; height: 88px; background-size: 64px; }
.dash-body { padding: 18px 22px 48px; }
.dash-banner {
  background: #e7353c;
  color: #fff;
  border-radius: 4px;
  padding: 22px 24px;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.dash-banner span { display: block; }
.dash-banner small { display: block; font-size: 12px; font-weight: 700; margin-top: 6px; opacity: .9; }
.dash-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dash-quad article {
  border-radius: 4px;
  padding: 16px 16px 14px;
  color: #fff;
  min-height: 118px;
  display: flex;
  flex-direction: column;
}
.dash-quad small { font-size: 11px; font-weight: 700; opacity: .9; }
.dash-quad b { font-size: 28px; margin: 8px 0 auto; }
.dash-quad a, .dash-quad button {
  background: none; border: 0; color: #fff; font-weight: 700; font-size: 12px;
  text-align: left; padding: 0; cursor: pointer;
}
.dash-quad .c-green { background: #1a805e; }
.dash-quad .c-red { background: #e7353c; }
.dash-quad .c-orange { background: #e6a817; }
.dash-quad .c-blue { background: #2f6fed; }
.dash-card {
  background: #fff;
  border-radius: 4px;
  padding: 16px 18px 22px;
}
.dash-card-h { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.dash-card-h small { color: #8b98a8; font-weight: 500; }
.dash-tabs, .dash-ptabs, .dash-subtabs {
  display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap;
}
.dash-tabs a, .dash-ptabs a, .dash-subtabs span {
  padding: 8px 12px; color: #6b7788; font-weight: 600; font-size: 13px;
  background: #fff; border-radius: 4px 4px 0 0;
}
.dash-tabs a.is-on, .dash-ptabs a.is-on, .dash-subtabs span.is-on {
  color: #2c3644; box-shadow: inset 0 -2px 0 #2f6fed;
}
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th { text-align: left; color: #8b98a8; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #e6ebf1; }
.dash-table td { padding: 12px 10px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.dash-table td img { width: 36px; height: 36px; border-radius: 8px; vertical-align: middle; margin-right: 8px; object-fit: cover; display: inline-block; }
.dash-table small { display: block; color: #8b98a8; font-size: 11px; }
.dash-empty { color: #8b98a8 !important; text-align: left; }
.dash-pill { background: #e6a817; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 3px; }
.dash-prof { display: flex; gap: 24px; align-items: flex-start; }
.dash-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; flex: 1; }
.dash-fields h5 { margin: 0 0 8px; color: #8b98a8; font-size: 12px; }
.dash-fields input, .dash-secu input, .dash-secu select, .dash-form-grid input {
  display: block; width: 100%; height: 38px; margin-bottom: 8px;
  border: 1px solid #e6ebf1; background: #f4f7fa; border-radius: 4px; padding: 0 10px; color: #2c3644;
}
.dash-set label { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #eef2f6; }
.dash-secu { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dash-secu h4 { margin: 0 0 10px; font-size: 14px; }
.dash-secu button, .dash-form-grid button {
  height: 34px; padding: 0 16px; border: 0; border-radius: 4px; background: #273142; color: #fff; font-weight: 600;
}
.dash-secu button.is-on { background: #1a805e; }
.dash-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; max-width: 820px; }
.dash-form-grid label { color: #6b7788; font-size: 12px; font-weight: 600; }
.kktc-modal {
  width: 380px; max-width: calc(100% - 24px); margin: 80px auto 0;
  background: #273142; color: #dfe3e8; border-radius: 4px; padding: 18px 20px 16px;
  position: relative; z-index: 2;
}
.kktc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kktc-logo { color: #f7d219; font-weight: 800; letter-spacing: .04em; }
.kktc-modal p { font-size: 12px; line-height: 1.45; color: #c5ced8; }
.kktc-modal label { display: block; font-size: 12px; margin: 10px 0; color: #9aa5b4; }
.kktc-modal input {
  display: block; width: 100%; height: 38px; margin-top: 4px;
  border: 1px solid #3d4a5c; background: #1b2431; color: #fff; border-radius: 4px; padding: 0 10px;
}
.kktc-go, .kktc-chat {
  width: 100%; height: 40px; border: 0; border-radius: 4px; margin-top: 8px; font-weight: 600;
}
.kktc-go { background: #313d4f; color: #dfe3e8; }
.kktc-chat { background: transparent; color: #dfe3e8; }
.dash-need { padding: 48px; text-align: center; color: #7f8fa4; }

@media (max-width: 1199px) {
  .dash {
    display: block;
    min-height: calc(100vh - 47px - 65px);
    overflow-x: hidden;
    position: relative;
  }
  .dash-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #4a5568;
  }
  .dash-nav-btn .icon {
    font-size: 22px;
    line-height: 1;
    color: #4a5568;
  }
  .dash-top {
    padding: 10px 12px;
  }
  .dash-top h1 { font-size: 18px; }
  .dash-user b { max-width: 96px; }
  .dash-side {
    position: fixed;
    top: 47px;
    left: 0;
    right: auto;
    bottom: 65px;
    width: min(268px, 86vw);
    max-width: 86vw;
    height: auto;
    max-height: calc(100dvh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 48;
    transform: translate3d(-100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    transition: transform .22s ease, visibility .22s;
  }
  .dash.is-nav-open .dash-side {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: 8px 0 22px rgba(0, 0, 0, .28);
  }
  .dash.is-nav-open .dash-nav-mask {
    display: block;
    position: fixed;
    top: 47px;
    left: 0;
    right: 0;
    bottom: 65px;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 20, 28, .42);
    z-index: 47;
  }
  .dash-main { width: 100%; max-width: 100%; overflow-x: hidden; }
  .dash-body { padding: 14px 12px 28px; }
  .dash-banner { font-size: 22px; padding: 16px; }
  .dash-quad { grid-template-columns: 1fr 1fr; }
  .dash-quad b { font-size: 22px; }
  .dash-secu, .dash-fields, .dash-form-grid { grid-template-columns: 1fr; }
  .dash-prof { flex-direction: column; }
  .pay-modal.finance-modal { width: calc(100% - 16px); margin: 8px auto; }
  body.is-dash-nav {
    overflow: hidden;
  }
}
