﻿:root {
  --bg: #22232d;
  --panel: #262733;
  --text: #f4f4f8;
  --muted: #a9a9b5;
  --line: #c8c9d3;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #171821;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: #171821;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}

.image-slot {
  position: relative;
  background:
    linear-gradient(135deg, rgba(72, 151, 205, 0.24), rgba(255, 255, 255, 0.05)),
    #303242;
  overflow: hidden;
}

.image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot img[src] + .placeholder {
  display: none;
}

.image-slot img:not([src]),
.image-slot img[src=""] {
  display: none;
}

.image-slot img:not([src]) + .placeholder,
.image-slot img[src=""] + .placeholder {
  display: flex;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
  letter-spacing: 0;
}

.placeholder strong {
  font-size: 20px;
}

.placeholder span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.hero {
  height: 225px;
}

.service-section {
  padding: 17px 8px 33px;
  background: var(--bg);
}

.section-title {
  text-align: center;
  margin-bottom: 23px;
}

.section-title h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(101, 112, 183, 0.7);
}

.section-title p {
  margin: 5px 0 0;
  color: #8f8f9b;
  font-size: 13px;
  font-weight: 500;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.service-item {
  min-width: 0;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.service-icon {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  max-width: 100%;
  margin: 0 auto 10px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #3b3c48;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

.service-icon.image-icon {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.service-icon.image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(93, 104, 170, 0.7);
}

.service-item em {
  display: block;
  color: #e6e6eb;
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 500;
}

.account-icon::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 19px;
  width: 17px;
  height: 17px;
  border: 4px solid #f0f1f6;
  border-radius: 50%;
}

.account-icon::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 43px;
  width: 39px;
  height: 20px;
  border: 4px solid #f0f1f6;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 20px 6px 0 -9px #f0f1f6, 24px 14px 0 -9px #f0f1f6;
}

.chart-icon::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 19px;
  width: 39px;
  height: 32px;
  border: 4px solid #f0f1f6;
}

.chart-icon::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 38px;
  width: 4px;
  height: 10px;
  background: #f0f1f6;
  box-shadow: 8px -4px 0 #f0f1f6, 16px 1px 0 #f0f1f6, 31px 8px 0 1px #3b3c48, 31px 8px 0 5px #f0f1f6;
}

.headset-icon::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 39px;
  height: 34px;
  border: 4px solid #f0f1f6;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.headset-icon::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 39px;
  width: 9px;
  height: 22px;
  border: 4px solid #f0f1f6;
  border-radius: 8px;
  box-shadow: 36px 0 0 -1px #3b3c48, 36px 0 0 3px #f0f1f6;
}

.money-icon::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 29px;
  width: 35px;
  height: 31px;
  border: 4px solid #f0f1f6;
  border-radius: 50% 50% 45% 45%;
}

.money-icon::after {
  content: "$";
  position: absolute;
  left: 33px;
  top: 33px;
  color: #f0f1f6;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 -26px 0 #f0f1f6;
}

.content-section {
  padding: 0 18px 24px;
  background: var(--bg);
}

.meeting {
  height: 169px;
  margin-bottom: 16px;
}

.meeting img {
  object-position: top center;
}

.copy {
  padding: 0 13px;
  color: #d8d8df;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}

.copy p {
  margin: 0 0 27px;
}

.footer {
  height: 80px;
  background: url("png/ba1.jpg") center / cover no-repeat;
}

@media (max-width: 360px) {
  .hero {
    height: 206px;
  }

  .service-section {
    padding-left: 6px;
    padding-right: 6px;
  }

  .service-grid {
    gap: 5px;
  }

  .service-icon {
    width: 68px;
    height: 68px;
  }

  .service-item strong {
    font-size: 13px;
  }

  .service-item em {
    font-size: 10px;
  }
}

.register-body {
  min-height: 100vh;
  color: #05070c;
  background: #eef0f5;
}

.register-page {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 44px;
  background: #eef0f5;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  color: #101010;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 99px;
  height: auto;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0;
  border: 0;
  color: #040507;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.globe {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.register-card h1 {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.register-form label > span {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 400;
}

.register-form input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  color: #1f2a35;
  background: #fff;
  font-size: 16px;
  outline: none;
}

.register-form input::placeholder {
  color: #6b7481;
  opacity: 1;
}

.register-form input:focus {
  box-shadow: 0 0 0 2px rgba(30, 145, 90, 0.25);
}

.submit-button {
  width: 100%;
  height: 47px;
  margin-top: -4px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #1d8e57;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.submit-button:disabled,
.wallet-submit:disabled,
.withdraw-submit:disabled,
.verify-submit:disabled,
.password-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.back-login {
  position: absolute;
  left: 50%;
  bottom: 23px;
  transform: translateX(-50%);
  color: #009b64;
  font-size: 16px;
  text-decoration: none;
}

.profile-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.profile-page {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 16px 88px;
  background: #f3f5fa;
}

.profile-top h1 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #657084;
  font-size: 13px;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 17px;
  padding: 0 7px 0 3px;
  border-radius: 9px;
  color: #02964b;
  background: #eefbf2;
  font-size: 12px;
  font-weight: 400;
}

.credit-badge img {
  display: block;
  width: 14px;
  height: 14px;
}

.asset-card {
  position: relative;
  min-height: 104px;
  margin-top: 16px;
  padding: 17px 16px 12px;
  border-radius: 16px;
  background: linear-gradient(105deg, #fff 0%, #fff 46%, #eefaf4 100%);
}

.currency-pill {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 60px;
  height: auto;
  display: block;
}

.asset-main span,
.balance-card span,
.asset-stats span {
  display: block;
  color: #657084;
  font-size: 14px;
}

.asset-main strong,
.balance-card strong {
  display: block;
  margin-top: 10px;
  color: #020407;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.asset-main em {
  display: block;
  margin-top: 14px;
  color: #657084;
  font-size: 14px;
  font-style: normal;
}

.asset-stats {
  position: absolute;
  right: 25px;
  bottom: 10px;
  display: flex;
  gap: 24px;
  text-align: center;
}

.asset-stats strong {
  display: block;
  margin-top: 6px;
  color: #009a60;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.95fr 0.95fr;
  gap: 12px;
  margin-top: 16px;
}

.balance-card,
.quick-action,
.menu-row {
  border-radius: 14px;
  background: #fff;
}

.balance-card {
  min-height: 80px;
  padding: 20px 16px;
}

.quick-action {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: #4f5d70;
  font-size: 15px;
  text-decoration: none;
}

.quick-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.quick-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.menu-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 43px 0 17px;
  color: #020407;
  text-decoration: none;
}

.menu-row::after {
  content: "";
  position: absolute;
  right: 20px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #101319;
  border-right: 1.5px solid #101319;
  transform: rotate(45deg);
}

.menu-row strong {
  font-size: 16px;
  font-weight: 400;
}

.menu-row em {
  margin-left: auto;
  color: #5f6673;
  font-size: 14px;
  font-style: normal;
}

.menu-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 13px;
  display: block;
}

.menu-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 390px);
  height: 46px;
  transform: translateX(-50%);
  background: #fff;
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  color: #20242d;
  font-size: 14px;
  text-decoration: none;
}

.bottom-nav .nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.bottom-nav .nav-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bottom-nav .active {
  color: #009a60;
}

.login-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.login-page {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 120px;
  background: #f3f5fa;
}

.login-card {
  margin-top: 51px;
}

.login-card h1 {
  margin: 0 0 52px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form label > span {
  color: #657084;
  font-size: 14px;
}

.login-form input {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 15px;
  padding: 0 16px;
  color: #1f2a35;
  background: #fff;
  font-size: 16px;
  outline: none;
}

.login-form input::placeholder {
  color: #657084;
  opacity: 1;
}

.login-form input:focus {
  box-shadow: 0 0 0 2px rgba(30, 145, 90, 0.25);
}

.login-submit {
  height: 54px;
  margin-top: 23px;
  border-radius: 15px;
  font-size: 20px;
}

.login-footer {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  text-align: center;
}

.login-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 17px;
  color: #00965f;
  font-size: 16px;
}

.login-footer a {
  color: #00965f;
  text-decoration: none;
}

.login-footer p {
  margin: 0;
  color: #00965f;
  font-size: 13px;
}

.login-footer p + p {
  margin-top: 22px;
}

.login-footer strong {
  color: #f03c4f;
  font-weight: 400;
}

.login-footer .policy-text {
  color: #657084;
  font-size: 16px;
}

.language-popover {
  position: fixed;
  z-index: 20;
  width: 138px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 28, 38, 0.18);
}

.language-popover button {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 7px;
  color: #18212f;
  background: transparent;
  font-size: 14px;
  text-align: left;
  padding: 0 10px;
}

.language-popover button.active {
  color: #00965f;
  background: #eefbf4;
  font-weight: 400;
}

.withdraw-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.withdraw-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 40px;
  background: #f3f5fa;
}

.page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 39px;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
}

.back-button {
  position: absolute;
  left: 0;
  top: 1px;
  width: 31px;
  height: 31px;
  display: block;
  text-decoration: none;
}

.back-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.withdraw-amount-card {
  min-height: 138px;
  padding: 20px 16px 15px;
  border-radius: 5px;
  background: #fff;
}

.withdraw-amount-card label > span {
  display: block;
  margin-bottom: 19px;
  font-size: 16px;
  font-weight: 400;
}

.amount-input {
  display: flex;
  align-items: center;
  height: 39px;
  border-bottom: 1px solid #d8dce4;
}

.amount-input strong {
  margin-right: 18px;
  color: #020407;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.amount-input input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  color: #1f2a35;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.amount-input input::placeholder,
.withdraw-password::placeholder {
  color: #6b7481;
  opacity: 1;
}

.withdraw-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: #657084;
  font-size: 14px;
}

.withdraw-meta em {
  color: #00965f;
  font-style: normal;
}

.wallet-select,
.withdraw-password {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 5px;
  padding: 0 18px;
  color: #05070c;
  background: #fff;
  font-size: 16px;
  outline: none;
}

.wallet-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.wallet-select i {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #252a34;
  border-bottom: 1.5px solid #252a34;
  transform: rotate(45deg) translateY(-3px);
}

.withdraw-password {
  margin-top: 0;
}

.withdraw-submit {
  width: 100%;
  height: 47px;
  margin-top: 1px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #1d8e57;
  font-size: 20px;
  font-weight: 400;
}

.verify-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.verify-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 40px;
  background: #f3f5fa;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 28px;
}

.verify-form input,
.verify-select {
  width: 100%;
  height: 38px;
  border: 1px solid #d4d8df;
  border-radius: 5px;
  padding: 0 12px;
  color: #111722;
  background: #fff;
  font-size: 16px;
  outline: none;
}

.verify-form input::placeholder {
  color: #657084;
  opacity: 1;
}

.verify-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  position: relative;
}

.verify-select i {
  position: absolute;
  right: 15px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #252a34;
  border-bottom: 1.5px solid #252a34;
  transform: rotate(45deg) translateY(-3px);
  pointer-events: none;
}

.verify-select select {
  width: 100%;
  height: 100%;
  border: 0;
  color: #111722;
  background: transparent;
  font: inherit;
  outline: none;
  appearance: none;
}

.upload-card {
  position: relative;
  width: 238px;
  height: 158px;
  margin: 0 auto;
  border: 0;
  padding: 0;
  color: #05070c;
  background: transparent;
}

.id-preview-img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 238px;
  height: 158px;
  object-fit: contain;
}

.upload-card.has-image .id-preview-img {
  border: 2px solid #21b86b;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

.folder-plus-img {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  transform: translateX(-50%);
}

.upload-card.has-image .folder-plus-img {
  opacity: 0;
}

.verify-file-input {
  display: none;
}

.upload-card + .upload-card {
  margin-top: 0;
}

.id-preview {
  position: absolute;
  inset: 0;
  border: 4px solid #9a9a9a;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: inset 0 0 0 1px #d4d4d4;
}

.id-preview::before,
.id-preview::after {
  content: "";
  position: absolute;
  left: 22px;
  height: 7px;
  border-radius: 2px;
  background: #9b9b9b;
}

.id-preview::before {
  top: 34px;
  width: 90px;
}

.id-preview::after {
  top: 75px;
  width: 191px;
  box-shadow: 0 42px 0 #9b9b9b;
}

.id-preview.front {
  overflow: hidden;
}

.id-preview.front::before {
  width: 90px;
}

.id-preview.front .unused {
  display: none;
}

.id-preview.front {
  background:
    radial-gradient(circle at 180px 66px, #9b9b9b 0 15px, transparent 16px),
    radial-gradient(ellipse at 180px 100px, #9b9b9b 0 42px, transparent 43px),
    #f7f7f7;
}

.id-preview.back {
  background:
    radial-gradient(circle at 63px 55px, transparent 0 26px, #9b9b9b 27px 30px, transparent 31px),
    linear-gradient(#9b9b9b, #9b9b9b) 123px 51px / 84px 7px no-repeat,
    linear-gradient(#9b9b9b, #9b9b9b) 123px 88px / 84px 7px no-repeat,
    #f7f7f7;
}

.id-preview.back::before {
  display: none;
}

.folder-plus {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 45px;
  height: 34px;
  border: 1px solid #1c63a3;
  border-radius: 6px;
  background:
    radial-gradient(circle, #58bd4e 0 11px, #276b24 12px 13px, transparent 14px),
    linear-gradient(#f7f7f7, #f7f7f7) center / 17px 4px no-repeat,
    linear-gradient(90deg, #f7f7f7, #f7f7f7) center / 4px 17px no-repeat,
    linear-gradient(#68b6ec, #bce6ff);
  box-shadow: -9px -6px 0 -1px #8acdf8, -10px -7px 0 -1px #1c63a3;
  transform: translateX(-50%);
}

.upload-card strong {
  position: absolute;
  left: 0;
  right: 0;
  top: 92px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}

.verify-submit {
  width: 100%;
  height: 38px;
  margin-top: 2px;
  border: 0;
  border-radius: 5px;
  color: #05070c;
  background: #1fc0dc;
  font-size: 17px;
  font-weight: 400;
}

.language-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.language-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 40px;
  background: #f3f5fa;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 27px;
}

.language-list button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 5px;
  color: #05070c;
  background: #fff;
  font-size: 16px;
}

.language-list button.active {
  background: #cfe1ff;
}

.password-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.password-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 40px;
  background: #f3f5fa;
}

.password-panel {
  margin-top: 20px;
  border: 1px solid #d2d5da;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.password-panel + .password-panel {
  margin-top: 16px;
}

.password-panel h2 {
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid #d2d5da;
  background: #fff;
  font-size: 16px;
  line-height: 40px;
  font-weight: 400;
}

.password-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.password-fields input {
  width: 100%;
  height: 38px;
  border: 1px solid #d6dce3;
  border-radius: 5px;
  padding: 0 12px;
  color: #111722;
  background: #fff;
  font-size: 16px;
  outline: none;
}

.password-fields input::placeholder {
  color: #657084;
  opacity: 1;
}

.password-submit {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
}

.password-submit.green {
  background: #1d8e57;
}

.password-submit.cyan {
  color: #05070c;
  background: #1fc0dc;
}

.accounts-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.accounts-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 40px;
  background: #f3f5fa;
}

.accounts-hero {
  display: flex;
  justify-content: center;
  margin: 30px 0 30px;
}

.accounts-hero img {
  display: block;
  width: 226px;
  height: auto;
}

.payment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-card {
  position: relative;
  display: block;
  height: 88px;
  padding: 18px 78px 15px 32px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  border-radius: 11px;
}

.payment-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-left,
.payment-card strong,
.payment-action {
  position: relative;
  z-index: 1;
}

.payment-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
}

.payment-left img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.payment-left em {
  font-size: 14px;
  font-style: normal;
}

.payment-card strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
}

.payment-action {
  position: absolute;
  right: 29px;
  top: 32px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.wallet-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.wallet-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 40px;
  background: #f3f5fa;
}

.wallet-panel {
  margin-top: 22px;
  border: 1px solid #d2d5da;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.wallet-panel h2 {
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid #d2d5da;
  font-size: 16px;
  line-height: 40px;
  font-weight: 400;
}

.wallet-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.wallet-fields input {
  width: 100%;
  height: 38px;
  border: 1px solid #d6dce3;
  border-radius: 5px;
  padding: 0 12px;
  color: #111722;
  background: #fff;
  font-size: 16px;
  outline: none;
}

.wallet-fields input::placeholder {
  color: #657084;
  opacity: 1;
}

.wallet-submit {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #1677ff;
  font-size: 17px;
  font-weight: 400;
}

.records-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.records-page {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 70px;
  background: #f3f5fa;
}

.records-search {
  display: grid;
  grid-template-columns: 24px 1fr 46px;
  align-items: center;
  gap: 8px;
  height: 45px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
}

.search-icon {
  color: #111722;
  font-size: 27px;
  line-height: 1;
}

.date-control {
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid #d6dce3;
  border-radius: 4px;
  background: #fff;
}

.date-control input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0 12px;
  color: #05070c;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.date-control input::placeholder {
  color: #05070c;
  opacity: 1;
}

.date-control span {
  width: 30px;
  color: #20242d;
  font-size: 14px;
  text-align: center;
}

.records-search button {
  height: 32px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #168447;
  font-size: 14px;
}

.records-list {
  display: grid;
  gap: 10px;
  padding: 18px 16px 90px;
}

.records-loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 94px;
  color: #657084;
  font-size: 15px;
}

.records-loading[hidden] {
  display: none;
}

.records-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #d9e2ec;
  border-top-color: #188d56;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.records-loading p {
  margin: 0;
}

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

.record-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.record-card div {
  display: grid;
  gap: 5px;
}

.record-card div:last-child {
  text-align: right;
}

.record-card strong,
.record-card em {
  color: #111;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.record-card span {
  color: #667386;
  font-size: 13px;
}

.empty-state {
  margin-top: 57px;
  text-align: center;
}

.empty-illustration {
  position: relative;
  width: 144px;
  height: 137px;
  margin: 0 auto;
  opacity: 0.72;
}

.empty-illustration::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 17px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e4e9ee;
}

.empty-illustration::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 18px;
  width: 92px;
  height: 9px;
  border-radius: 50%;
  background: #dfe5ea;
}

.empty-paper {
  position: absolute;
  left: 45px;
  top: 28px;
  z-index: 1;
  width: 58px;
  height: 78px;
  border-radius: 4px 16px 14px 4px;
  background: #f6f8fa;
  box-shadow: 0 18px 38px rgba(121, 137, 154, 0.25);
}

.empty-paper::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #9aa6b7;
  box-shadow:
    31px 0 0 -1px #9aa6b7,
    0 13px 0 #9aa6b7,
    16px 13px 0 -1px #9aa6b7,
    0 26px 0 #9aa6b7,
    30px 26px 0 -2px #9aa6b7,
    0 39px 0 #9aa6b7,
    20px 39px 0 -1px #9aa6b7,
    0 52px 0 #9aa6b7,
    28px 52px 0 -1px #9aa6b7;
}

.empty-glass {
  position: absolute;
  right: 22px;
  top: 62px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 8px solid rgba(226, 232, 238, 0.92);
  border-radius: 50%;
}

.empty-glass::after {
  content: "";
  position: absolute;
  right: -21px;
  bottom: -15px;
  width: 31px;
  height: 7px;
  border-radius: 4px;
  background: rgba(226, 232, 238, 0.92);
  transform: rotate(45deg);
}

.empty-state p {
  margin: 13px 0 0;
  font-size: 16px;
}

.news-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.news-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 70px;
  background: #f3f5fa;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.news-card {
  min-height: 96px;
  padding: 25px 16px 20px;
  border-radius: 16px;
  color: #657084;
  background: #fff;
  font-size: 14px;
  line-height: 1.85;
}

.news-card + .news-card {
  position: relative;
}

.news-card + .news-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 23px;
  height: 1px;
  background: #d7dbe1;
}

.news-card + .news-card {
  padding-top: 38px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
}

.modal-mask[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(286px, calc(100vw - 64px));
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.confirm-dialog h2,
.confirm-dialog p {
  margin: 0;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 56px;
}

.confirm-dialog h2 {
  border-bottom: 1px solid #d8d8d8;
}

.confirm-dialog p {
  border-bottom: 1px solid #d8d8d8;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 8px 16px;
}

.confirm-actions button {
  min-width: 58px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
}

.cancel-button {
  background: #737d89;
}

.confirm-button {
  background: #1677ff;
}

.notice-mask {
  align-items: flex-start;
  padding-top: 84px;
  background: rgba(0, 0, 0, 0.32);
}

.notice-dialog {
  width: min(286px, calc(100vw - 64px));
  border-radius: 2px;
}

.notice-dialog h2 {
  line-height: 54px;
}

.notice-dialog .notice-message {
  padding: 16px;
  color: #1b1f27;
  font-size: 16px;
  line-height: 1.55;
}

.notice-dialog .confirm-actions {
  gap: 20px;
  padding: 10px 16px 12px;
}

.notice-dialog .confirm-actions button {
  min-width: 58px;
  height: 38px;
}

.trade-home-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.trade-home-page {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 70px;
  background:
    linear-gradient(90deg, rgba(230, 247, 241, 0.86), rgba(245, 247, 251, 0.96) 34%, rgba(245, 247, 251, 0.96) 66%, rgba(230, 247, 241, 0.86)),
    #f3f5fa;
}

.home-header {
  margin-bottom: 15px;
}

.home-banner {
  height: 167px;
  border-radius: 16px;
  overflow: hidden;
}

.home-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.home-actions a {
  min-height: 74px;
  border-radius: 13px;
  color: #586273;
  background: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.home-actions img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.home-actions .service-action {
  grid-column: span 2;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 12px 0 22px;
  gap: 6px;
}

.service-action span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-action strong {
  color: #00965f;
  font-size: 16px;
  font-weight: 400;
}

.service-action em {
  margin-top: 5px;
  color: #657084;
  font-size: 13px;
  font-style: normal;
}

.home-actions .service-action img {
  width: 52px;
  height: 44px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 23px 0 20px;
  color: #657084;
}

.section-heading span {
  width: 38px;
  height: 1px;
  background: #657084;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-card {
  min-height: 194px;
  padding: 12px 15px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.product-card h3 {
  margin: 0 0 8px;
  color: #00965f;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

.product-card p,
.product-card strong {
  display: block;
  margin: 0;
  color: #657084;
  font-size: 15px;
  font-weight: 400;
}

.sparkline {
  height: 58px;
  margin: 8px 0 11px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.sparkline.up {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='58' viewBox='0 0 100 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2,45 8,22 13,47 20,39 27,36 35,30 43,22 50,18 57,24 64,15 72,17 79,21 87,15 96,13' fill='none' stroke='%23ff304a' stroke-width='2'/%3E%3C/svg%3E");
}

.sparkline.mid {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='58' viewBox='0 0 100 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2,42 8,18 15,35 23,29 31,23 39,15 47,17 55,9 63,15 71,13 79,19 87,15 96,12' fill='none' stroke='%23ff304a' stroke-width='2'/%3E%3C/svg%3E");
}

.sparkline.gold {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='58' viewBox='0 0 100 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2,27 7,45 12,30 17,44 23,38 30,41 36,35 43,39 50,34 58,32 65,35 72,21 78,17 85,7 93,12 98,18' fill='none' stroke='%23ff304a' stroke-width='2'/%3E%3C/svg%3E");
}

.product-card em {
  display: block;
  margin-top: 8px;
  color: #f02d47;
  font-size: 14px;
  font-style: normal;
}

.market-heading {
  margin-top: 18px;
}

.market-table header {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.8fr;
  padding: 0 16px 10px;
  color: #657084;
  font-size: 12px;
}

.market-row {
  display: grid;
  grid-template-columns: 42px 1.2fr 0.8fr 0.85fr;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 10px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.market-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.market-row strong {
  color: #00965f;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

.market-row small {
  display: block;
  color: #657084;
  font-size: 13px;
  font-weight: 400;
}

.market-row span {
  color: #657084;
  font-size: 14px;
}

.market-row em {
  display: block;
  min-width: 64px;
  height: 33px;
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  line-height: 33px;
  text-align: center;
}

.market-row em.rise {
  background: #de3449;
}

.market-row em.fall {
  background: #168a52;
}

.privacy-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.privacy-page {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 32px;
  background: #f3f5fa;
}

.privacy-content {
  margin-top: 29px;
  font-size: 15px;
  line-height: 1.55;
}

.privacy-content h2 {
  margin: 25px 0 8px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
}

.privacy-content p {
  margin: 0 0 8px;
}

.product-detail-body {
  min-height: 100vh;
  color: #05070c;
  background: #f3f5fa;
}

.product-detail-page {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 0 82px;
  background: #f3f5fa;
}

.product-detail-header {
  padding: 0 16px;
}

.product-detail-header h1 {
  color: #657084;
  font-size: 23px;
}

.quote-card {
  position: relative;
  display: grid;
  grid-template-columns: 44% 1px 1fr;
  min-height: 115px;
  margin: 28px 16px 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.quote-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 17px;
  border-left: 3px solid #1c965b;
}

.quote-main strong {
  color: #e03145;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 400;
}

.quote-main span {
  margin-top: 13px;
  color: #e03145;
  font-size: 17px;
}

.quote-card.quote-up .quote-main strong,
.quote-card.quote-up .quote-main span {
  color: #e03145;
}

.quote-card.quote-down .quote-main strong,
.quote-card.quote-down .quote-main span {
  color: #13955b;
}

.quote-divider {
  position: relative;
  height: 100%;
  background: #e9edf2;
}

.quote-divider::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 47px;
  width: 16px;
  height: 16px;
  border-top: 1px solid #e9edf2;
  border-right: 1px solid #e9edf2;
  background: #fff;
  transform: rotate(45deg);
}

.quote-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 8px 18px;
  padding: 0 20px;
}

.quote-stats span {
  color: #657084;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.quote-stats em {
  display: block;
  color: #657084;
  font-size: 14px;
  font-style: normal;
}

.chart-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 23px 0 0;
  padding: 0 11px;
}

.chart-tabs button {
  position: relative;
  border: 0;
  padding: 0;
  color: #05070c;
  background: transparent;
  font: inherit;
  font-size: 17px;
}

.chart-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 4px;
  border-radius: 3px;
  background: #1c965b;
  transform: translateX(-50%);
}

.kline-panel {
  position: relative;
  height: 288px;
  margin-top: 36px;
  border-top: 0;
  border-bottom: 1px solid #d8dde5;
  background: #f3f5fa;
}

.market-chart {
  width: 100%;
  height: 100%;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #657084;
  font-size: 14px;
}

.chart-loading[hidden] {
  display: none;
}

.price-tag {
  position: absolute;
  right: 2px;
  top: -11px;
  z-index: 3;
  padding: 2px 4px;
  color: #fff;
  background: #2cc58d;
  font-size: 12px;
  line-height: 1.15;
}

.axis-label,
.time-label,
.low-label,
.volume-label {
  position: absolute;
  color: #657084;
  font-size: 12px;
}

.label-top { right: 3px; top: 15px; }
.label-mid-a { right: 3px; top: 55px; }
.label-mid-b { right: 3px; top: 95px; }
.label-mid-c { right: 3px; top: 135px; }
.label-mid-d { right: 3px; top: 175px; }
.label-bottom { right: 3px; top: 215px; }
.low-label { left: 132px; top: 236px; }
.time-a { left: 8px; bottom: -21px; }
.time-b { left: 88px; bottom: -21px; }
.time-c { left: 168px; bottom: -21px; }
.volume-label { right: 3px; bottom: 10px; }

.candle,
.wick,
.dash,
.volume-spike {
  position: absolute;
}

.candle {
  width: 6px;
}

.candle i {
  display: block;
  width: 100%;
  min-height: 22px;
  border-radius: 1px;
}

.candle::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -12px;
  width: 1px;
  height: calc(100% + 24px);
}

.candle.red i,
.candle.red::before {
  background: #ff3154;
}

.candle.green i,
.candle.green::before {
  background: #25c795;
}

.c1 { left: 14px; top: 69px; }
.c1 i { height: 43px; }
.c2 { left: 62px; top: 130px; }
.c2 i { height: 22px; }
.c3 { left: 84px; top: 131px; }
.c3 i { height: 63px; }
.c4 { left: 108px; top: 130px; }
.c4 i { height: 22px; }
.c5 { left: 126px; top: 110px; }
.c5 i { height: 22px; }
.c6 { left: 138px; top: 48px; }
.c6 i { height: 43px; }
.c7 { left: 144px; top: 48px; }
.c7 i { height: 43px; }
.c8 { left: 190px; top: 69px; }
.c8 i { height: 63px; }
.c9 { left: 204px; top: 69px; }
.c9 i { height: 63px; }
.c10 { left: 253px; top: 69px; }
.c10 i { height: 22px; }

.wick {
  width: 1px;
  background: #8f9ba9;
}

.w1 { left: 1px; top: 45px; height: 88px; }

.dash {
  height: 0;
  border-top: 2px dashed #8f9ba9;
}

.d1 { left: 36px; top: 111px; width: 20px; }
.d2 { left: 28px; top: 131px; width: 7px; }
.d3 { left: 86px; top: 131px; width: 26px; }
.d4 { left: 166px; top: 111px; width: 17px; }
.d5 { left: 243px; top: 90px; width: 20px; }

.volume-spike {
  left: 251px;
  bottom: 4px;
  width: 7px;
  height: 23px;
  border: 1px solid #25c795;
  border-bottom: 0;
}

.volume-spike::before {
  content: "";
  position: absolute;
  left: -250px;
  bottom: 1px;
  width: 250px;
  height: 1px;
  background: #e03145;
  opacity: 0.65;
}

.holdings-heading {
  margin-top: 59px;
}

.product-empty {
  margin-top: 12px;
}

.product-empty .empty-illustration {
  width: 120px;
  height: 112px;
  transform: scale(0.74);
  transform-origin: center;
}

.product-empty p {
  margin-top: -8px;
  color: #657084;
  font-size: 14px;
}

.holdings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 16px 0;
}

.holdings-list[hidden] {
  display: none;
}

.holding-card {
  padding: 13px 15px;
  border-radius: 12px;
  background: #fff;
}

.holding-card header,
.holding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.holding-card header {
  margin-bottom: 10px;
}

.holding-card h3 {
  margin: 0;
  color: #05070c;
  font-size: 16px;
  font-weight: 400;
}

.holding-badge {
  min-width: 44px;
  height: 24px;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}

.holding-badge.up {
  background: #df3046;
}

.holding-badge.down {
  background: #168a52;
}

.holding-row {
  color: #657084;
  font-size: 13px;
  line-height: 1.9;
}

.holding-row strong {
  color: #05070c;
  font-size: 14px;
  font-weight: 400;
}

.holding-row .profit {
  color: #e03145;
}

.holding-row .loss {
  color: #168a52;
}

.trade-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: min(100%, 390px);
  padding: 16px;
  background: #fff;
  transform: translateX(-50%);
}

.trade-actions button {
  height: 38px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
}

.trade-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.buy-up {
  background: #df3046;
}

.buy-down {
  background: #168a52;
}

.trade-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 234px;
  background: transparent;
}

.trade-modal-mask[hidden] {
  display: none;
}

.trade-order-dialog {
  position: relative;
  width: min(312px, calc(100vw - 78px));
  overflow: hidden;
  border-radius: 0 0 13px 13px;
  background: #fff;
  box-shadow: 10px 10px 11px rgba(0, 0, 0, 0.22);
}

.trade-order-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 49px;
  padding: 0 17px;
  border-bottom: 1px solid #e3e5e9;
}

.trade-order-dialog header div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.trade-order-dialog header span {
  color: #657084;
  font-size: 17px;
  line-height: 1;
}

.trade-order-dialog header strong {
  min-width: 39px;
  height: 26px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
}

.trade-order-dialog header button {
  border: 0;
  padding: 0;
  color: #657084;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.trade-order-content {
  padding: 16px 16px 16px;
}

.trade-order-label {
  margin: 0 0 6px;
  color: #657084;
  font-size: 13px;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e5e9;
}

.time-options button {
  position: relative;
  min-width: 0;
  height: 109px;
  border: 1px solid #d6dce3;
  border-radius: 4px;
  color: #657084;
  background: #fff;
  overflow: hidden;
}

.time-options button.selected {
  border-color: var(--order-color);
  background:
    radial-gradient(circle at 24px 26px, rgba(225, 231, 237, 0.45) 0 9px, transparent 10px),
    radial-gradient(circle at 13px 59px, rgba(225, 231, 237, 0.45) 0 5px, transparent 6px),
    #fff;
}

.time-options button.selected::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 29px;
  height: 29px;
  background: #f0c320;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.time-options button.selected::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 11px;
  height: 6px;
  border-left: 2px solid #13683f;
  border-bottom: 2px solid #13683f;
  transform: rotate(-45deg);
}

.time-options strong {
  display: block;
  margin: 4px 0 13px;
  color: #657084;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.time-options small {
  margin-left: 1px;
  font-size: 11px;
  font-weight: 400;
}

.time-options span {
  display: block;
  color: #657084;
  font-size: 13px;
  line-height: 1.45;
}

.time-options em {
  color: #e03145;
  font-style: normal;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 9px;
  color: #657084;
  font-size: 13px;
}

.amount-stepper {
  display: grid;
  grid-template-columns: 32px 1fr 32px 54px 54px;
  height: 38px;
  border: 1px solid #d6dce3;
  border-radius: 5px;
  overflow: hidden;
}

.amount-stepper button,
.amount-stepper input {
  min-width: 0;
  border: 0;
  border-right: 1px solid #d6dce3;
  color: #111722;
  background: #fff;
  font: inherit;
  font-size: 16px;
  text-align: center;
}

.amount-stepper button:last-child {
  border-right: 0;
}

.amount-stepper input {
  padding: 0 6px;
  outline: none;
}

.amount-stepper input::placeholder {
  color: #657084;
  opacity: 1;
}

.order-submit {
  width: 100%;
  height: 38px;
  margin-top: 32px;
  border: 1px solid var(--order-color);
  border-radius: 5px;
  color: var(--order-color);
  background: #fff;
  font-size: 16px;
  font-weight: 400;
}

.order-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.trade-order-dialog.order-down {
  --order-color: #168a52;
}

.trade-order-dialog.order-up {
  --order-color: #df3046;
}

.trade-order-dialog.order-down header strong {
  background: #168a52;
}

.trade-order-dialog.order-up header strong {
  background: #df3046;
}

.order-tip {
  position: absolute;
  left: 67px;
  top: 119px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 156px;
  min-height: 58px;
  padding: 14px 17px;
  border-radius: 5px;
  color: #0d63d8;
  background: #cfe0ff;
  box-shadow: 0 1px 4px rgba(45, 74, 120, 0.18);
}

.order-tip[hidden] {
  display: none;
}

.order-tip span {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #fff;
  background: #1677ff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.order-tip p {
  margin: 0;
  color: #005fe8;
  font-size: 16px;
  line-height: 1;
}

.admin-body {
  min-height: 100vh;
  color: #111722;
  background: #eef2f6;
}

.admin-page {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.admin-header p {
  margin: 5px 0 0;
  color: #657084;
  font-size: 14px;
}

.admin-header a {
  flex: 0 0 auto;
  color: #168a52;
  text-decoration: none;
  font-size: 14px;
}

.admin-login-card {
  width: min(420px, 100%);
  margin: 42px auto 0;
  border-radius: 10px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 40, 58, 0.08);
}

.admin-login-card h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 400;
}

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

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: #657084;
  font-size: 14px;
}

.admin-login-card input {
  height: 44px;
  border: 1px solid #d7dde5;
  border-radius: 7px;
  padding: 0 12px;
  color: #111722;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.admin-login-card button {
  height: 44px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #168a52;
  font-size: 16px;
}

.admin-login-card p {
  margin: 0;
  color: #e03546;
  font-size: 14px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr 110px 82px 82px;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-stream-status {
  align-self: end;
  height: 38px;
  color: #657084;
  font-size: 13px;
  line-height: 38px;
  text-align: center;
}

.admin-toolbar label,
.admin-edit-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #657084;
  font-size: 13px;
}

.admin-toolbar input,
.admin-edit-dialog input,
.admin-edit-dialog select {
  height: 38px;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 0 12px;
  color: #111722;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.admin-toolbar button,
.admin-row-edit,
.admin-save,
.admin-delete {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #168a52;
  font-size: 14px;
}

.admin-toolbar button {
  align-self: end;
  height: 38px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.admin-tabs button {
  position: relative;
  flex: 0 0 auto;
  height: 36px;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 0 14px;
  color: #111722;
  background: #fff;
  font-size: 14px;
}

.admin-tab-count {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  color: #fff;
  background: #e03546;
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}

.admin-tabs button.active {
  border-color: #168a52;
  color: #fff;
  background: #168a52;
}

.admin-card {
  min-height: 420px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  max-width: 230px;
  border-bottom: 1px solid #edf0f4;
  padding: 12px 14px;
  color: #657084;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table th {
  color: #111722;
  background: #f7f9fb;
  font-weight: 400;
}

.admin-row-edit {
  height: 30px;
  padding: 0 12px;
}

.admin-image-link {
  color: #168a52;
  text-decoration: none;
}

.admin-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 4px;
}

.admin-proof-link,
.admin-proof-missing {
  min-height: 126px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  padding: 10px;
  color: #657084;
  background: #f7f9fb;
  font-size: 13px;
  text-decoration: none;
}

.admin-proof-link span {
  display: block;
  margin-bottom: 8px;
  color: #111722;
}

.admin-proof-link img {
  width: 100%;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.admin-proof-missing {
  display: grid;
  place-items: center;
}

.admin-audit-actions {
  display: flex;
  gap: 10px;
}

.admin-audit-btn {
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
}

.admin-audit-btn.approve {
  background: #168a52;
}

.admin-audit-btn.reject {
  background: #df3046;
}

.admin-empty {
  margin: 120px 0 0;
  color: #657084;
  text-align: center;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.32);
}

.admin-modal[hidden] {
  display: none;
}

.admin-edit-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 10px;
  background: #fff;
}

.admin-edit-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f4;
}

.admin-edit-dialog h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.admin-edit-dialog header button {
  border: 0;
  color: #657084;
  background: transparent;
  font-size: 14px;
}

#adminEditForm {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-edit-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
}

.admin-edit-actions button {
  width: 112px;
  height: 38px;
}

.admin-delete {
  background: #df3046;
}

@media (max-width: 640px) {
  .admin-page {
    padding: 16px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-toolbar button {
    width: 100%;
  }
}

.service-chat-body {
  min-height: 100vh;
  color: #111722;
  background: #fff;
}

.service-chat-page {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0 91px;
  background: #fff;
}

.service-chat-header {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  width: min(100%, 390px);
  height: 56px;
  padding: 0 14px 0 0;
  color: #fff;
  background: #79b993;
  transform: translateX(-50%);
}

.service-back {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.service-back img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.service-chat-header h1 {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-menu,
.service-more {
  flex: 0 0 auto;
  border: 0;
  color: #fff;
  background: transparent;
}

.service-menu {
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

.service-more {
  position: relative;
  width: 28px;
  height: 40px;
}

.service-more::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  width: 13px;
  height: 13px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.chat-stream {
  height: calc(100vh - 147px);
  padding: 16px;
  overflow-y: auto;
}

.chat-meta {
  margin: 0 0 4px;
  color: #586273;
  font-size: 12px;
}

.chat-message {
  margin-bottom: 12px;
}

.chat-message.user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-message.user .chat-bubble {
  color: #fff;
  background: #79b993;
}

.chat-bubble {
  width: 286px;
  padding: 11px 10px;
  border-radius: 6px;
  color: #05070c;
  background: #e1e4ea;
  font-size: 16px;
  line-height: 1.55;
}

.chat-media-image,
.chat-media-video {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 6px;
  object-fit: contain;
  background: #111;
}

.chat-media-video {
  width: 100%;
}

.chat-file-link {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.chat-missing-media {
  color: inherit;
  font-size: 14px;
  opacity: 0.85;
}

.chat-input-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 390px);
  min-height: 91px;
  border-top: 1px solid #e0e5eb;
  background: #fff;
  transform: translateX(-50%);
}

.chat-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 33px;
  padding: 7px 16px 0;
}

.chat-tools button {
  width: 20px;
  height: 20px;
  border: 0;
  padding: 0;
  color: #657084;
  background: transparent;
  font-size: 20px;
  line-height: 20px;
}

.chat-tools svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-file-input {
  display: none;
}

.emoji-panel {
  position: absolute;
  left: 1px;
  right: 39px;
  bottom: 91px;
  z-index: 24;
  height: 350px;
  display: grid;
  grid-template-rows: 42px 1fr 58px;
  border: 1px solid #e0e5eb;
  border-radius: 0 0 6px 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 23, 34, 0.1);
  overflow: hidden;
}

.emoji-panel[hidden] {
  display: none;
}

.emoji-categories {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: center;
  gap: 2px;
  padding: 6px 10px 4px;
  border-bottom: 1px solid #f0f2f5;
}

.emoji-categories button {
  width: 25px;
  height: 25px;
  border: 0;
  padding: 0;
  color: #7b8491;
  background: transparent;
  font-size: 20px;
  line-height: 25px;
}

.emoji-categories button.active {
  color: #4aa3e0;
}

.emoji-scroll {
  overflow-y: auto;
  padding: 0 10px 12px;
}

.emoji-scroll h3 {
  margin: 13px 0 11px;
  color: #7c7c7c;
  font-size: 16px;
  font-weight: 600;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 10px;
}

.emoji-grid button {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 24px;
  line-height: 32px;
}

.emoji-grid button:hover,
.emoji-grid button:focus {
  background: #f0f3f7;
}

.emoji-frequent {
  grid-template-columns: repeat(7, 32px);
}

.emoji-mood {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid #e4e8ee;
  background: #fff;
}

.emoji-mood span {
  font-size: 34px;
  line-height: 1;
}

.emoji-mood em {
  color: #657084;
  font-size: 15px;
  font-style: normal;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto 42px;
  align-items: center;
  gap: 8px;
  padding: 2px 16px 10px;
}

.chat-compose input {
  min-width: 0;
  height: 34px;
  border: 0;
  color: #111722;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.chat-compose input::placeholder {
  color: #8c95a3;
  opacity: 1;
}

.chat-compose span {
  color: #657084;
  font-size: 12px;
}

.chat-compose button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #79b993;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
}

.admin-chat-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 560px;
}

.admin-chat-panel[hidden] {
  display: none;
}

.admin-conversations {
  border-right: 1px solid #edf0f4;
  background: #f8fafc;
  overflow-y: auto;
}

.admin-conversations button {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  padding: 14px;
  color: #111722;
  background: transparent;
  text-align: left;
}

.admin-conversations button.active {
  background: #eefbf4;
}

.admin-conversations strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 400;
}

.admin-chat-count {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  color: #fff;
  background: #e03546;
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}

.admin-conversations span {
  color: #657084;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-conversations em {
  color: #8c95a3;
  font-size: 12px;
  font-style: normal;
}

.admin-chat-room {
  display: grid;
  grid-template-rows: 54px 1fr 58px;
  min-width: 0;
}

.admin-chat-room header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #edf0f4;
}

.admin-chat-room h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.admin-chat-room header button {
  height: 32px;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 0 12px;
  color: #657084;
  background: #fff;
}

.admin-chat-messages {
  padding: 16px;
  overflow-y: auto;
  background: #fff;
}

.admin-chat-message {
  margin-bottom: 12px;
}

.admin-chat-message.agent {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.admin-chat-message p {
  margin: 0 0 5px;
  color: #657084;
  font-size: 12px;
}

.admin-chat-message div {
  max-width: 68%;
  border-radius: 8px;
  padding: 10px 12px;
  color: #111722;
  background: #eef2f6;
  font-size: 14px;
  line-height: 1.55;
}

.admin-chat-message .chat-media-image,
.admin-chat-message .chat-media-video {
  max-width: min(320px, 100%);
  max-height: 260px;
}

.admin-chat-message.agent div {
  color: #fff;
  background: #168a52;
}

.admin-chat-reply {
  display: grid;
  grid-template-columns: 1fr 64px 86px;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #edf0f4;
}

.admin-chat-reply input {
  min-width: 0;
  height: 38px;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
}

.admin-chat-reply button {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #168a52;
}

.admin-chat-reply .admin-chat-image {
  color: #168a52;
  background: #eaf7f1;
  font-size: 14px;
}

.admin-chat-reply button[type="submit"] {
  font-size: 20px;
  line-height: 20px;
}

.admin-chat-empty {
  margin: 22px;
  color: #657084;
  font-size: 14px;
  text-align: center;
}

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

  .admin-conversations {
    max-height: 190px;
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }

  .admin-chat-room {
    min-height: 470px;
  }
}

