:root {
  color-scheme: light;
  --brand: #315791;
  --brand-link: #1150c2;
  --page: #f4f7f9;
  --register-page: #f6f7fb;
  --text: #000;
  --muted: #999;
  --line: #e8e8e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #e9eef2;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

.mobile-page {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 36px rgba(19, 44, 70, 0.07);
}

.login-page {
  display: flex;
  flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 24px
    calc(24px + env(safe-area-inset-bottom));
  background: var(--page);
}

.login-header {
  padding-bottom: 24px;
}

.header-top {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-end;
}

.lang-wrap {
  position: relative;
}

.lang-pill {
  display: inline-flex;
  min-width: 76px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  color: #51565c;
  background: rgba(235, 239, 241, 0.85);
  font-size: 14px;
}

.lang-pill svg {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
}

.lang-wrap.open .lang-pill svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 128px;
  overflow: hidden;
  border: 1px solid rgba(49, 87, 145, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 46, 73, 0.14);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  color: #4c5056;
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.lang-option:hover,
.lang-option.active {
  color: var(--brand);
  background: #f3f6fb;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.brand-logo {
  width: 160px;
  height: 88px;
  object-fit: contain;
}

.login-body {
  flex: 1;
  width: 100%;
}

.form-title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field.password-field {
  margin-bottom: 8px;
}

.form-label {
  display: block;
  margin: 0 0 8px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.input-shell {
  position: relative;
  display: flex;
  height: 48px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #000;
  background: transparent;
  font-size: 15px;
}

.input-shell input::placeholder {
  color: #999;
  opacity: 1;
}

.input-shell:focus-within {
  border-color: rgba(49, 87, 145, 0.55);
  box-shadow: 0 0 0 3px rgba(49, 87, 145, 0.08);
}

.field-error {
  min-height: 18px;
  margin: 6px 4px 0 0;
  color: var(--brand);
  font-size: 12px;
  text-align: right;
}

.primary-btn {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 24px 0 0;
  border: 0;
  border-radius: 12px;
  color: #999;
  background: #e8e8e8;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.primary-btn.active,
.primary-btn.register-submit {
  color: #fff;
  background: var(--brand);
}

.primary-btn:active {
  opacity: 0.92;
}

.primary-btn:disabled {
  cursor: default;
}

.action-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.text-link {
  padding: 4px 6px;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 14px;
  text-decoration: none;
}

.link-separator {
  color: #ccc;
  font-size: 12px;
}

.agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: #333;
  font-size: 14px;
  text-align: center;
}

.agreement .text-link {
  padding: 4px;
}

.service-fab {
  position: fixed;
  z-index: 50;
  right: max(14px, calc((100vw - 480px) / 2 + 14px));
  bottom: calc(70px + env(safe-area-inset-bottom));
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(49, 87, 145, 0.35);
}

.service-fab svg {
  width: 28px;
  height: 28px;
}

.register-page {
  min-height: 100vh;
  padding: 60px 25px calc(50px + env(safe-area-inset-bottom));
  background: var(--register-page);
}

.back-btn {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  left: 25px;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #cbcbcb;
}

.back-btn svg {
  width: 23px;
  height: 23px;
}

.register-title {
  margin: 0 0 25px;
  color: rgba(0, 0, 0, 0.9);
  font-size: 20px;
  font-weight: 800;
}

.register-form .form-field {
  margin-bottom: 16px;
}

.register-form .form-label {
  margin-bottom: 6px;
  padding: 0;
  color: #a8a9ac;
  font-size: 14px;
}

.register-form .input-shell {
  min-height: 50px;
  height: auto;
  padding: 0 14px;
  border-color: #fff;
  border-radius: 12px;
}

.register-form .input-shell input::placeholder {
  color: #ccc;
}

.password-toggle {
  display: flex;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  color: #999;
  background: transparent;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: end;
  gap: 10px;
}

.captcha-canvas {
  width: 100px;
  height: 50px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.register-submit {
  margin-top: 25px;
}

.register-bottom {
  display: flex;
  justify-content: center;
  padding-top: 25px;
}

.register-bottom .text-link {
  color: var(--brand-link);
}

.home-page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  background: #f4f6f9;
}

.home-navbar {
  position: relative;
  z-index: 30;
  display: flex;
  flex: 0 0 auto;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: #f6f7fb;
}

.home-logo {
  width: 80px;
  height: 36px;
  object-fit: contain;
}

.home-navbar .lang-pill {
  height: 32px;
  background: rgba(235, 239, 241, 0.72);
}

.home-lang .lang-menu {
  z-index: 80;
}

.home-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-scroll::-webkit-scrollbar,
.recommend-scroll::-webkit-scrollbar {
  display: none;
}

.home-banner {
  position: relative;
  height: 160px;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 35%, rgba(255, 239, 177, 0.46), transparent 31%),
    linear-gradient(128deg, #172f55 0%, #315791 47%, #92703c 100%);
  box-shadow: 0 8px 24px rgba(28, 52, 84, 0.16);
}

.home-banner::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, 0.1) 48.5%, transparent 49%),
    repeating-linear-gradient(150deg, transparent 0 24px, rgba(255, 255, 255, 0.035) 25px 26px);
  content: "";
}

.banner-copy {
  position: relative;
  z-index: 2;
  padding: 28px 0 0 24px;
}

.banner-eyebrow {
  color: #f0d48b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.banner-copy h1 {
  margin: 8px 0 5px;
  color: #fff;
  font-family: "Songti SC", SimSun, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 3px;
}

.banner-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.banner-orbit {
  position: absolute;
  top: 0;
  right: 0;
  width: 49%;
  height: 100%;
}

.banner-orbit::before,
.banner-orbit::after {
  position: absolute;
  border: 1px solid rgba(255, 230, 157, 0.34);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.banner-orbit::before {
  top: 22px;
  right: -25px;
  width: 160px;
  height: 105px;
}

.banner-orbit::after {
  top: 39px;
  right: -10px;
  width: 123px;
  height: 77px;
}

.gold-disc {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff0aa, #c38f29 55%, #6c4917);
  box-shadow: inset -5px -6px 12px rgba(91, 57, 11, 0.25), 0 7px 14px rgba(8, 19, 32, 0.2);
}

.gold-disc-one {
  top: 41px;
  right: 54px;
  width: 64px;
  height: 64px;
}

.gold-disc-two {
  top: 80px;
  right: 12px;
  width: 42px;
  height: 42px;
}

.gold-disc-three {
  top: 24px;
  right: 10px;
  width: 28px;
  height: 28px;
}

.banner-dots {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.banner-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.banner-dots .active {
  width: 14px;
  border-radius: 999px;
  background: #fff;
}

.home-guide {
  position: relative;
  height: 92px;
  overflow: hidden;
  background: #f5f6f8;
}

.home-guide-wave {
  position: absolute;
  z-index: 1;
  top: 58px;
  left: 0;
  width: 100%;
  height: 133px;
}

.home-guide-astronaut {
  position: absolute;
  z-index: 3;
  top: 42px;
  left: 50%;
  width: 56px;
  height: 45px;
  object-fit: contain;
  transform: translateX(-50%);
}

.home-guide-dialog {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: calc(50% + 40px);
  display: flex;
  width: 90px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  font-size: 13px;
  transform: rotate(-7deg);
}

.home-guide-dialog::after {
  position: absolute;
  bottom: -8px;
  left: 16px;
  width: 13px;
  height: 13px;
  border-right: 1px solid var(--brand);
  border-bottom: 1px solid var(--brand);
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.home-guide-hand {
  position: absolute;
  z-index: 4;
  top: 66px;
  left: calc(50% + 8px);
  width: 18px;
  height: 18px;
  transform-origin: left top;
  animation: homeHandWave 1.2s ease-in-out infinite;
}

@keyframes homeHandWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-65deg); }
}

.home-shortcut-card {
  position: relative;
  z-index: 4;
  padding: 12px 12px 4px;
  animation: homeCardEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homeCardEnter {
  from { opacity: 0; transform: translate(80px, -25px); }
  to { opacity: 1; transform: translate(0, 0); }
}

.home-shortcut-grid {
  display: grid;
  gap: 10px;
}

.home-shortcut-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.home-shortcut-grid-lower {
  grid-template-columns: 1fr 1fr 2fr;
  margin-top: 10px;
}

.home-shortcut,
.home-service-card {
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.home-shortcut {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  color: #333;
  font-size: 12px;
}

.home-shortcut:active,
.home-service-card:active,
.recommend-card:active,
.market-card:active {
  opacity: 0.88;
}

.home-shortcut-icon-wrap {
  position: relative;
  display: inline-flex;
}

.home-shortcut-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  object-fit: contain;
}

.home-shortcut-badge {
  position: absolute;
  z-index: 2;
  top: -4px;
  right: -5px;
  display: flex;
  min-width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 10px;
}

.home-service-card {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fdeef1, #fff 45%, #fff 55%, #fdeef1);
}

.home-service-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.home-service-copy strong {
  color: #222;
  font-size: 14px;
  font-weight: 600;
}

.home-service-copy small {
  margin-top: 5px;
  color: #a8a9ac;
  font-size: 10px;
  white-space: nowrap;
}

.home-service-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.home-notice {
  display: flex;
  align-items: center;
  margin: 12px 12px 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: calc(100% - 24px);
  border: 0;
  text-align: left;
}

.home-notice > img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
  animation: homeHornPulse 0.9s ease-in-out infinite;
}

@keyframes homeHornPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.home-notice-viewport {
  height: 22px;
  flex: 1;
  overflow: hidden;
}

.home-notice-track {
  display: inline-flex;
  width: max-content;
  align-items: center;
  animation: homeNoticeMarquee 17s linear infinite;
}

.home-notice-track span {
  padding-right: 50px;
  color: #222;
  font-size: 13px;
  line-height: 22px;
  white-space: nowrap;
}

@keyframes homeNoticeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-section {
  padding: 0 15px;
}

.home-section h2 {
  margin: 0;
  color: #222;
  font-size: 14px;
}

.home-recommend {
  margin-top: 16px;
}

.home-recommend h2 {
  padding-bottom: 10px;
  font-weight: 500;
}

.recommend-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.recommend-card,
.market-card {
  border: 0;
  color: inherit;
  background: #fff;
  text-align: left;
}

.recommend-card {
  display: flex;
  width: 108px;
  flex: 0 0 108px;
  flex-direction: column;
  padding: 10px;
  border-radius: 13px;
}

.market-name {
  display: block;
  overflow: hidden;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-code {
  margin-top: 3px;
  color: #a8a9ac;
  font-size: 10px;
}

.market-mode-label {
  display: inline-block;
  margin-left: 4px;
  color: #9a6b19;
  font-weight: 600;
}

.market-mode-label[hidden] {
  display: none;
}

.market-provider-status {
  margin: 2px 0 7px;
  color: #8d95a5;
  font-size: 10px;
  line-height: 1.45;
}

.product-provider-status {
  margin: 2px 0 9px;
}

.live-market-chart {
  display: block;
  width: 100%;
  height: 55px;
  margin-top: 6px;
  overflow: visible;
  color: #0bb563;
}

.live-market-chart.down {
  color: #f33b50;
}

.mini-market-chart-state {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  background: linear-gradient(110deg, #f7f8fb 24%, #eef1f6 38%, #f7f8fb 52%);
  background-size: 220% 100%;
  border-radius: 8px;
  font-size: 11px;
}

.mini-market-chart-state.is-loading {
  animation: mini-market-loading 1.25s linear infinite;
}

.mini-market-chart-state.is-loading span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border: 1.5px solid #bdc5d2;
  border-top-color: #315791;
  border-radius: 50%;
  vertical-align: -1px;
  animation: mini-market-spin 0.75s linear infinite;
}

.mini-market-chart-state.is-unavailable {
  color: #9da5b3;
  background: #f5f7fa;
}

@keyframes mini-market-loading {
  to { background-position: -220% 0; }
}

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

.live-chart-area {
  fill: currentColor;
  opacity: 0.08;
}

.live-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.live-chart-point {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  animation: live-chart-pulse 1.7s ease-out infinite;
}

@keyframes live-chart-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  55% { opacity: 0.4; transform: scale(1.75); }
}

.market-price {
  margin-top: 6px;
  font-size: 13px;
}

.up {
  color: #0bb563 !important;
}

.down {
  color: #f33b50 !important;
}

.home-markets {
  margin-top: 30px;
  padding-bottom: 30px;
}

.home-markets h2 {
  padding-bottom: 0;
  font-weight: 800;
}

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

.market-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
}

.market-card .live-market-chart {
  height: 83px;
}

.market-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #999;
  font-size: 10px;
}

.app-tab-page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  background: #f6f7fb;
}

.tab-page-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tab-page-scroll::-webkit-scrollbar {
  display: none;
}

.product-page-content {
  padding: 33px 18px 28px;
}

.product-page-title {
  height: 32px;
  margin: 0;
  padding: 0 0 10px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 13px;
  margin-top: 10px;
}

.market-loading-state {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 28px 16px;
  border-radius: 14px;
  background: #fff;
  color: #8d99ad;
  font-size: 14px;
  text-align: center;
}

.product-page-card {
  display: flex;
  height: 157px;
  min-width: 0;
  flex-direction: column;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: #111;
  background: #fff;
  text-align: left;
}

.live-market-chart-product {
  display: block;
  width: 100%;
  flex: 0 0 93px;
  height: 93px;
  margin: 0;
}

.product-page-card strong {
  overflow: hidden;
  flex: 0 0 22px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-page-meta {
  display: flex;
  height: 22px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  color: #a4aaba;
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
}

.product-page-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-page-change {
  flex: 0 0 auto;
  margin-left: 4px;
  color: #43c879;
}

.account-page-content {
  padding: 16px 15px 28px;
}

.assets-summary {
  position: relative;
  height: 100px;
  padding: 12px 16px;
}

.assets-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.assets-summary-top > div {
  display: flex;
  flex-direction: column;
}

.assets-label,
.assets-summary-bottom,
.assets-balance-card span,
.assets-stat span {
  color: #a5aaba;
}

.assets-label {
  font-size: 11px;
  line-height: 16px;
}

.assets-summary-top strong {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 400;
  line-height: 18px;
}

.assets-cny-badge {
  display: inline-flex;
  width: 39px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #315791;
  font-size: 9px;
  font-weight: 700;
  transform: rotate(-13deg);
}

.assets-summary-bottom {
  position: absolute;
  right: 16px;
  bottom: 13px;
  left: 16px;
  display: flex;
  height: 30px;
  align-items: flex-end;
  font-size: 12px;
  line-height: 17px;
}

.assets-summary-bottom > span {
  flex: 1;
  padding-bottom: 2px;
}

.assets-stat {
  display: flex;
  min-width: 68px;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  line-height: 14px;
}

.assets-stat strong {
  margin-top: 1px;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
}

.assets-quick {
  display: grid;
  height: 77px;
  grid-template-columns: 1.27fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.assets-balance-card,
.assets-quick-card {
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.assets-balance-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
}

.assets-balance-card span {
  font-size: 11px;
  line-height: 22px;
  white-space: nowrap;
}

.assets-balance-card strong {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
}

.assets-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111;
}

.assets-quick-card .account-menu-icon {
  width: 29px;
  height: 29px;
}

.assets-quick-card strong {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.account-menu {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.account-menu-row {
  display: flex;
  width: 100%;
  height: 43px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #111;
  background: #fff;
  text-align: left;
}

.account-menu-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.account-menu-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu-icon.blue,
.account-menu-icon.purple {
  color: #7190ff;
  background: #e7e9ff;
}

.account-menu-icon.orange {
  color: #f3a55c;
  background: #fff0df;
}

.account-menu-icon.pink {
  color: #da77aa;
  background: #ffe8f4;
}

.account-menu-icon.cyan {
  color: #59bfe0;
  background: #e4f7fc;
}

.account-menu-label {
  min-width: 0;
  flex: 1;
  margin-left: 11px;
  overflow: hidden;
  font-size: 14px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-status {
  margin-right: 7px;
  color: #777;
  font-size: 12px;
  line-height: 22px;
}

.account-menu-chevron {
  color: #ccc;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}

.profile-summary {
  position: relative;
  display: grid;
  min-height: 132px;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 13px;
  margin: 14px 15px 0;
  padding: 18px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #294d86 0%, #416ba9 65%, #557db7 100%);
  box-shadow: 0 10px 24px rgba(49, 87, 145, 0.2);
}

.profile-summary::after {
  position: absolute;
  top: -42px;
  right: -32px;
  width: 140px;
  height: 140px;
  border: 22px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.profile-avatar {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 23px;
  font-weight: 700;
}

.profile-primary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.profile-display-name {
  overflow: hidden;
  font-size: 18px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-account,
.profile-uid {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 18px;
}

.profile-uid {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 45, 84, 0.18);
}

.profile-badges {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.profile-credit,
.profile-invite {
  display: inline-flex;
  min-width: 0;
  height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-credit small,
.profile-invite small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.profile-credit b,
.profile-invite b {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.profile-menu {
  margin-top: 12px;
}

.home-bottom-space {
  height: 22px;
}

.home-tabbar {
  position: relative;
  z-index: 40;
  display: grid;
  height: calc(50px + env(safe-area-inset-bottom));
  flex: 0 0 auto;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 0 env(safe-area-inset-bottom);
  border: 0;
  background: #fff;
}

.home-tabbar::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.33);
  content: "";
  pointer-events: none;
  transform: scaleY(0.5);
  transform-origin: 50% 0;
}

.home-tab {
  display: flex;
  height: 50px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: #98999d;
  background: transparent;
  font-size: 0;
  line-height: normal;
  -webkit-tap-highlight-color: transparent;
}

.home-tab.active {
  color: var(--brand);
}

.home-tab svg,
.home-tab img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 5px;
  object-fit: contain;
}

.home-tab span {
  margin-top: 3px;
  color: currentColor;
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
}

.home-tab-home.active span {
  margin-top: 0;
  line-height: 18px;
}

.home-tab-home-icon,
.home-tab-profile-icon {
  overflow: visible;
}

.home-fab {
  bottom: calc(66px + env(safe-area-inset-bottom));
  width: 50px;
  height: 50px;
}

.guide-overlay {
  position: absolute;
  z-index: 90;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(120deg, #eaf7ff, #f7f8fb 36%, #f5f6f8);
}

.guide-overlay[hidden] {
  display: none;
}

.guide-overlay-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: calc(44px + env(safe-area-inset-top)) 35px 180px;
}

.guide-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guide-heading span {
  width: 23px;
  height: 14px;
  background-image: radial-gradient(#9fc8ff 1px, transparent 1px);
  background-size: 5px 5px;
}

.guide-heading h2 {
  margin: 0;
  color: #1f5598;
  font-size: 15px;
}

.guide-overlay-scroll > p {
  margin: 12px 0 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.7;
}

.guide-feature-heading {
  margin-top: 30px;
}

.guide-intro {
  text-align: center;
}

.guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 10px;
  margin-top: 24px;
}

.guide-feature-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-feature-grid b {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, #6ca8ff, #3577e8);
  box-shadow: 0 4px 9px rgba(49, 87, 145, 0.16);
  font-size: 13px;
}

.guide-feature-grid div:nth-child(2n) b {
  background: linear-gradient(180deg, #ffbd56, #ff8a28);
}

.guide-feature-grid div:nth-child(3n) b {
  border-radius: 50%;
  background: linear-gradient(180deg, #8bd86d, #39aa35);
}

.guide-feature-grid span {
  margin-top: 7px;
  color: #2f5f9e;
  font-size: 12px;
  white-space: nowrap;
}

.guide-center-image {
  display: block;
  width: 62%;
  max-height: 185px;
  margin: 24px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(64, 116, 192, 0.18));
}

.guide-policy-heading {
  margin-top: 34px;
}

.guide-spacer {
  height: 90px;
}

.guide-overlay-wave {
  position: absolute;
  z-index: 2;
  bottom: -72px;
  left: 0;
  width: 100%;
  height: 133px;
  pointer-events: none;
}

.guide-overlay-astronaut {
  position: absolute;
  z-index: 3;
  bottom: 54px;
  left: 50%;
  width: 68px;
  height: 55px;
  object-fit: contain;
  pointer-events: none;
  transform: translateX(-50%);
}

.guide-close {
  position: absolute;
  z-index: 4;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%;
  width: 90px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--brand);
  border-radius: 0;
  color: var(--brand);
  background: #fff;
  font-size: 12px;
  transform: translateX(-50%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inner-page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  background: #f6f7fb;
}

.inner-page-header {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: calc(44px + env(safe-area-inset-top));
  flex: 0 0 auto;
  grid-template-columns: 44px 1fr 44px;
  align-items: end;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid #eceef2;
  background: #fff;
}

.inner-page-header-brand {
  border-bottom: 0;
  color: #fff;
  background: #3478ed;
}

.inner-page-header h1 {
  height: 44px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
}

.inner-back,
.inner-header-spacer {
  width: 44px;
  height: 44px;
}

.inner-back {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: currentColor;
  background: transparent;
}

.inner-back svg {
  width: 22px;
  height: 22px;
}

.inner-page-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.inner-page-scroll::-webkit-scrollbar {
  display: none;
}

.recharge-page {
  background: #fff;
}

.recharge-scroll {
  background: #fff;
}

.recharge-tabs {
  display: grid;
  height: 55px;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #f1f1f1;
}

.recharge-tabs button {
  position: relative;
  border: 0;
  color: #555;
  background: #fff;
  font-size: 14px;
}

.recharge-tabs button.active {
  color: #111;
  font-weight: 700;
}

.recharge-tabs button.active::after {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #3478ed;
  content: "";
  transform: translateX(-50%);
}

.recharge-form-card {
  padding: 10px 15px 24px;
}

.recharge-select select,
.recharge-input {
  width: 100%;
  height: 40px;
  border: 1px solid #75a5ff;
  border-radius: 4px;
  outline: 0;
  color: #333;
  background: #fff;
  font-size: 13px;
}

.recharge-select select {
  padding: 0 10px;
}

.recharge-info-row {
  display: grid;
  min-height: 50px;
  grid-template-columns: 90px 1fr 24px;
  align-items: center;
  border-bottom: 1px solid #cfd3db;
  font-size: 13px;
}

.recharge-info-row strong {
  font-weight: 500;
}

.recharge-info-row span {
  overflow: hidden;
  color: #333;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-info-row button {
  border: 0;
  color: #3478ed;
  background: transparent;
  font-size: 15px;
}

.recharge-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px 12px;
  margin: 12px 0 10px;
}

.recharge-amounts button {
  height: 40px;
  border: 1px solid #6c9fff;
  border-radius: 5px;
  color: #111;
  background: #fff;
  font-size: 13px;
}

.recharge-amounts button.active {
  color: #fff;
  background: #3478ed;
}

.recharge-input {
  margin-bottom: 10px;
  padding: 0 10px;
}

.recharge-estimate {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 15px 0 28px;
  color: #3478ed;
}

.recharge-estimate b {
  font-size: 28px;
  font-weight: 400;
}

.recharge-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #3478ed;
  font-size: 14px;
  font-weight: 600;
}

.local-only-note {
  margin: 12px 0 0;
  color: #a3a8b3;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.orders-page {
  background: #fff;
}

.orders-scroll {
  background: #f7f8fb;
}

.order-tabs {
  display: grid;
  height: 52px;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
}

.order-tabs button {
  position: relative;
  border: 0;
  color: #6e737d;
  background: #fff;
  font-size: 13px;
}

.order-tabs button.active {
  color: #315791;
  font-weight: 600;
}

.order-tabs button.active::after {
  position: absolute;
  right: 28%;
  bottom: 0;
  left: 28%;
  height: 2px;
  border-radius: 999px;
  background: #315791;
  content: "";
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #969ca7;
  text-align: center;
}

.order-empty {
  min-height: 430px;
}

.empty-state strong {
  margin-top: 18px;
  color: #737987;
  font-size: 14px;
  font-weight: 500;
}

.empty-state p {
  margin: 8px 0 0;
  font-size: 12px;
}

.empty-document {
  position: relative;
  width: 76px;
  height: 88px;
  border: 2px solid #c9d4e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 12px 10px 0 #edf1f7;
}

.empty-document span {
  position: absolute;
  top: -8px;
  left: 20px;
  width: 36px;
  height: 16px;
  border: 2px solid #c9d4e5;
  border-radius: 6px;
  background: #f7f8fb;
}

.empty-document i {
  display: block;
  width: 42px;
  height: 3px;
  margin: 17px auto 0;
  border-radius: 3px;
  background: #dbe3ee;
}

.payout-scroll {
  padding: 16px 15px 28px;
}

.payout-scroll h2 {
  margin: 1px 2px 11px;
  color: #4b515c;
  font-size: 13px;
  font-weight: 500;
}

.payout-method-list {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 62, 92, 0.05);
}

.payout-method-list button {
  display: grid;
  width: 100%;
  height: 62px;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #eff1f4;
  color: #2f3339;
  background: #fff;
  text-align: left;
}

.payout-method-list button:last-child {
  border-bottom: 0;
}

.payout-method-list button b {
  color: #b5bac3;
  font-size: 23px;
  font-weight: 300;
  text-align: right;
}

.payout-method-list button > span:not(.payout-icon) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payout-method-list button small {
  color: #929aa8;
  font-size: 11px;
}

.payout-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #315791;
  background: #edf3ff;
}

.payout-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-scroll {
  padding: 22px 16px 40px;
  background: linear-gradient(180deg, #edf4ff 0, #f6f7fb 190px);
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 21px;
}

.about-logo-wrap img {
  width: 166px;
  height: auto;
}

.about-card {
  padding: 20px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(49, 87, 145, 0.08);
}

.about-card h2 {
  margin: 0 0 14px;
  color: #315791;
  font-size: 16px;
  text-align: center;
}

.about-card p {
  margin: 0 0 15px;
  color: #404650;
  font-size: 13px;
  line-height: 1.9;
  text-align: justify;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.messages-scroll {
  padding: 14px 14px 36px;
  background: #f7f8fb;
}

.message-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  background: #e9edf4;
}

.message-tabs button {
  position: relative;
  height: 42px;
  border: 0;
  border-radius: 9px;
  color: #7a8493;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.message-tabs button.active {
  color: #315791;
  background: #fff;
  box-shadow: 0 3px 10px rgba(49, 87, 145, 0.1);
}

.message-tabs button span {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #df5c60;
  font-size: 10px;
}

.message-list {
  display: grid;
  gap: 10px;
}

.message-card {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 15px 14px;
  border: 0;
  border-radius: 12px;
  color: #222936;
  background: #fff;
  text-align: left;
  box-shadow: 0 4px 16px rgba(31, 45, 61, 0.05);
}

.message-card.unread {
  box-shadow: inset 3px 0 #315791, 0 4px 16px rgba(31, 45, 61, 0.06);
}

.message-card-icon {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #315791;
  background: #edf3fc;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
}

.message-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.message-card-body strong,
.message-card-body em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-card-body strong { font-size: 15px; }
.message-card-body small { color: #a0a8b5; font-size: 11px; }
.message-card-body em { color: #747e8c; font-size: 13px; font-style: normal; }
.message-card > b { color: #b8c0cb; font-size: 21px; font-weight: 400; }

.message-unread-dot {
  width: 9px;
  height: 9px;
  justify-self: center;
  border-radius: 50%;
  background: #df5c60;
}

.message-detail-card {
  padding: 22px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(31, 45, 61, 0.05);
}

.message-detail-type {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #315791;
  background: #edf3fc;
  font-size: 11px;
}

.message-detail-card h2 { margin: 15px 0 7px; font-size: 19px; line-height: 1.45; }
.message-detail-card time { color: #9ba4b1; font-size: 12px; }
.message-detail-card p { margin: 22px 0 0; color: #3d4551; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }

.message-empty {
  min-height: 520px;
}

.message-empty-icon {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #91a8ca;
  background: #e8eef7;
  font-size: 34px;
}

.service-page {
  background: #eef3f9;
}

.service-header {
  color: #fff;
  border-color: #315791;
  background: #315791;
}

.service-scroll {
  padding: 16px 14px 96px;
}

.service-status-card {
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(49, 87, 145, 0.07);
}

.service-avatar {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #80aef3, #315791);
}

.service-avatar svg {
  width: 25px;
  height: 25px;
}

.service-status-card > div {
  display: flex;
  flex-direction: column;
  margin-left: 11px;
}

.service-status-card strong {
  color: #252a31;
  font-size: 14px;
}

.service-status-card small {
  margin-top: 4px;
  color: #7e858f;
  font-size: 11px;
}

.service-status-card small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #3bc579;
}

.service-time {
  margin: 18px 0;
  color: #9aa1aa;
  font-size: 11px;
  text-align: center;
}

.service-message-row {
  display: flex;
  align-items: flex-start;
}

.service-avatar.small {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.service-avatar.small svg {
  width: 20px;
  height: 20px;
}

.service-bubble {
  max-width: 74%;
  margin-left: 9px;
  padding: 11px 13px;
  border-radius: 4px 12px 12px;
  color: #303640;
  background: #fff;
  box-shadow: 0 3px 10px rgba(49, 87, 145, 0.05);
  font-size: 13px;
  line-height: 1.55;
}

.service-safety-note {
  margin-top: 18px;
  color: #969da8;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.service-composer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: calc(62px + env(safe-area-inset-bottom));
  grid-template-columns: 38px 1fr 58px;
  gap: 8px;
  align-items: start;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #e1e6ed;
  background: #fff;
}

.service-composer button,
.service-composer input {
  height: 40px;
  border-radius: 8px;
}

.service-composer button {
  border: 0;
  color: #6c7581;
  background: #f0f2f5;
  font-size: 22px;
}

.service-composer input {
  min-width: 0;
  padding: 0 11px;
  border: 1px solid #e1e5eb;
  outline: 0;
  background: #f8f9fb;
  font-size: 13px;
}

.service-composer .service-send {
  color: #fff;
  background: #315791;
  font-size: 13px;
}

.account-subpage {
  background: #f6f7fb;
}

.account-subpage-scroll {
  padding: 15px 15px 28px;
}

.info-card,
.settings-card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 62, 92, 0.04);
}

.info-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 105px 1fr;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid #eff1f4;
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row > span {
  color: #30343b;
}

.info-row strong {
  color: #858b95;
  font-weight: 400;
  text-align: right;
}

.invite-code-row {
  grid-template-columns: 105px 1fr 52px;
}

.invite-code-row button {
  height: 28px;
  margin-left: 9px;
  border: 1px solid #315791;
  border-radius: 6px;
  color: #315791;
  background: #fff;
  font-size: 12px;
}

.verification-scroll {
  padding-bottom: 34px;
}

.verification-form,
.password-settings-form {
  padding: 4px 15px 18px;
  border-radius: 12px;
  background: #fff;
}

.subpage-field {
  display: grid;
  min-height: 58px;
  grid-template-columns: 94px 1fr;
  align-items: center;
  border-bottom: 1px solid #e9ecf1;
  color: #252a31;
  font-size: 14px;
}

.subpage-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 3px;
  border: 0;
  outline: 0;
  color: #333;
  background: transparent;
  font-size: 14px;
  text-align: right;
}

.subpage-field input::placeholder {
  color: #a7acb5;
}

.gender-field {
  display: grid;
  min-height: 58px;
  grid-template-columns: 94px 70px 70px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e9ecf1;
  font-size: 14px;
}

.gender-field legend {
  display: contents;
}

.gender-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555b65;
}

.gender-field input {
  width: 17px;
  height: 17px;
  accent-color: #315791;
}

.identity-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
}

.identity-upload-grid button {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #aebdd3;
  border-radius: 10px;
  color: #555e6c;
  background: #f8faff;
}

.upload-placeholder {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6f8ebf;
  background: #e7eef9;
  font-size: 26px;
  font-weight: 300;
}

.identity-upload-grid strong {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 500;
}

.identity-upload-grid small {
  margin-top: 4px;
  color: #9fa5ae;
  font-size: 12px;
}

.verification-submit {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #315791;
  font-size: 14px;
  font-weight: 600;
}

.settings-scroll {
  padding: 15px 15px 28px;
}

.settings-card {
  background: transparent;
  box-shadow: none;
}

.settings-row {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  color: #22272f;
  background: #fff;
  font-size: 14px;
  text-align: left;
}

.settings-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c3c7cd;
  font-size: 22px;
  font-weight: 300;
}

.settings-row-right small {
  color: #8d939e;
  font-size: 13px;
}

.password-settings-scroll {
  padding: 15px 15px 28px;
}

.password-settings-form {
  padding-top: 2px;
}

.password-settings-form .verification-submit {
  margin-top: 24px;
}

.asset-record-scroll {
  background: #f6f7fb;
}

.asset-record-empty {
  min-height: 530px;
}

.asset-record-icon {
  position: relative;
  width: 74px;
  height: 82px;
  border: 2px solid #cbd6e7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 9px 9px 0 #e9eef6;
}

.asset-record-icon span {
  position: absolute;
  top: -7px;
  left: 20px;
  width: 32px;
  height: 14px;
  border: 2px solid #cbd6e7;
  border-radius: 5px;
  background: #f6f7fb;
}

.asset-record-icon i {
  display: block;
  width: 39px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: #dce4ef;
}

.withdrawal-scroll {
  padding: 15px 15px 28px;
}

.withdrawal-form {
  padding: 4px 15px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 62, 92, 0.04);
}

.withdrawal-amount-field {
  display: block;
  padding: 16px 0 10px;
  border-bottom: 1px solid #e8ebf0;
}

.withdrawal-amount-field > span,
.withdrawal-select-row > span,
.withdrawal-password-row > span {
  color: #262b33;
  font-size: 14px;
}

.withdrawal-amount-field > div {
  display: flex;
  align-items: center;
  margin-top: 13px;
}

.withdrawal-amount-field b {
  margin-right: 7px;
  font-size: 24px;
  font-weight: 400;
}

.withdrawal-amount-field input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 20px;
}

.withdrawal-amount-field input::placeholder {
  color: #a5aab3;
  font-size: 14px;
}

.withdrawal-balance {
  margin: 9px 0 14px;
  color: #a1a7b0;
  font-size: 13px;
}

.withdrawal-balance strong {
  color: #315791;
  font-weight: 500;
}

.withdrawal-select-row,
.withdrawal-password-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 94px 1fr;
  align-items: center;
  border-top: 1px solid #eceef2;
}

.withdrawal-select-row select,
.withdrawal-password-row input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 24px 0 4px;
  border: 0;
  outline: 0;
  color: #555c67;
  background-color: #fff;
  font-size: 14px;
  text-align: right;
}

.withdrawal-select-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m7 9.5 5 5 5-5' fill='none' stroke='%239aa1ac' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 2px center;
  background-repeat: no-repeat;
}

.withdrawal-password-row input::placeholder {
  color: #a7acb5;
}

.withdrawal-submit {
  width: 100%;
  height: 46px;
  margin-top: 24px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #315791;
  font-size: 14px;
  font-weight: 600;
}

.usdt-recharge-card h2 {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.usdt-network-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.usdt-network-row button {
  height: 40px;
  border: 1px solid #8cacdf;
  border-radius: 7px;
  color: #315791;
  background: #fff;
  font-size: 14px;
}

.usdt-network-row button.active {
  color: #fff;
  background: #315791;
}

.usdt-qr {
  position: relative;
  display: grid;
  width: 146px;
  height: 146px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px auto 12px;
  padding: 14px;
  border: 1px solid #d7dee9;
  background-image: repeating-linear-gradient(45deg, #315791 0 5px, transparent 5px 10px);
}

.usdt-qr span {
  border: 8px solid #fff;
  outline: 7px solid #315791;
  background: #315791;
}

.usdt-qr b {
  position: absolute;
  right: 30px;
  bottom: 25px;
  padding: 4px;
  color: #315791;
  background: #fff;
  font-size: 10px;
}

.usdt-address-label {
  margin: 0 0 8px;
  color: #7d8490;
  font-size: 13px;
  text-align: center;
}

.usdt-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5fb;
}

.usdt-address code {
  overflow: hidden;
  flex: 1;
  color: #445064;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usdt-address button {
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #315791;
  font-size: 12px;
}

.usdt-amount-field,
.usdt-hash-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
  color: #30353d;
  font-size: 14px;
}

.usdt-amount-field input,
.usdt-hash-field input {
  height: 42px;
  padding: 0 10px;
  border: 1px solid #cbd5e4;
  border-radius: 7px;
  outline: 0;
  font-size: 14px;
}

.payout-form-scroll {
  padding: 16px 15px 28px;
}

.payout-account-form {
  padding: 4px 15px 20px;
  border-radius: 12px;
  background: #fff;
}

.payout-saved-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 4px;
  padding: 12px;
  border-radius: 8px;
  color: #315791;
  background: #f1f5fc;
}

.payout-saved-summary span,
.payout-saved-summary small {
  color: #6f7a8a;
}

.payout-account-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 0;
  color: #30353d;
  font-size: 14px;
}

.payout-account-form input {
  height: 42px;
  padding: 0 11px;
  border: 1px solid #e0e4eb;
  border-radius: 7px;
  outline: 0;
  font-size: 14px;
}

.payout-account-form > button {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #315791;
  font-size: 14px;
  font-weight: 600;
}

.privacy-scroll {
  padding: 16px 15px 38px;
}

.privacy-card {
  padding: 18px 17px;
  border-radius: 12px;
  background: #fff;
}

.privacy-card h2 {
  margin: 0 0 14px;
  color: #315791;
  font-size: 17px;
}

.privacy-card h3 {
  margin: 20px 0 6px;
  font-size: 15px;
}

.privacy-card p {
  margin: 0;
  color: #515864;
  font-size: 14px;
  line-height: 1.8;
}

.identity-upload-grid label {
  position: relative;
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #aebdd3;
  border-radius: 10px;
  color: #555e6c;
  background: #f8faff;
  cursor: pointer;
}

.identity-upload-grid label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-placeholder.has-image {
  width: 100%;
  height: 76px;
  border-radius: 7px;
  overflow: hidden;
  background: #e7eef9;
}

.upload-placeholder.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-language-panel {
  position: absolute;
  z-index: 20;
  right: 15px;
  bottom: calc(60px + env(safe-area-inset-bottom));
  left: 15px;
  padding: 15px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(24, 38, 58, 0.22);
}

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

.settings-language-panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.settings-language-panel button {
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid #eef0f4;
  color: #333941;
  background: #fff;
  font-size: 14px;
}

.settings-language-panel button.active {
  color: #315791;
}

.settings-language-panel button:last-child {
  justify-content: center;
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  background: #f1f3f7;
}

.service-attach {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6c7581;
  background: #f0f2f5;
  font-size: 22px;
  cursor: pointer;
}

.service-attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.service-message-row.user {
  justify-content: flex-end;
  margin: 12px 0;
}

.service-message-row.user .service-bubble {
  margin: 0;
  border-radius: 12px 4px 12px 12px;
  color: #fff;
  background: #315791;
  white-space: pre-line;
}

.service-file-name {
  margin: 12px 0 0 auto;
  width: fit-content;
  max-width: 80%;
  padding: 7px 10px;
  border-radius: 8px;
  color: #5f6874;
  background: #fff;
  font-size: 12px;
}

.trade-detail-page {
  background: #f5f7fb;
}

.trade-detail-scroll {
  padding: 14px 14px 92px;
}

.trade-market-loading {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px 20px;
  border-radius: 12px;
  color: #8b94a3;
  background: #fff;
  text-align: center;
}

.trade-market-loading[hidden],
[data-detail-market-content][hidden],
.trade-action-bar[hidden] {
  display: none !important;
}

.trade-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e3e8f1;
  border-top-color: #315791;
  border-radius: 50%;
  animation: trade-loading-spin 0.85s linear infinite;
}

.trade-market-loading strong {
  margin-top: 18px;
  color: #3b4656;
  font-size: 17px;
}

.trade-market-loading p {
  max-width: 290px;
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.trade-market-loading.is-unavailable .trade-loading-spinner {
  position: relative;
  display: grid;
  border: 0;
  color: #8791a0;
  background: #eef1f5;
  animation: none;
  place-items: center;
}

.trade-market-loading.is-unavailable .trade-loading-spinner::after {
  content: "!";
  font-size: 20px;
  font-weight: 700;
}

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

.trade-quote-card,
.trade-chart-card {
  padding: 15px;
  border-radius: 12px;
  background: #fff;
}

.trade-quote-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.trade-quote-top > div:first-child {
  display: flex;
  flex-direction: column;
}

.trade-quote-top small {
  color: #9aa1ac;
  font-size: 12px;
}

.trade-quote-top strong {
  margin-top: 4px;
  color: #315791;
  font-size: 28px;
  font-weight: 600;
}

.trade-price-mode {
  margin-top: 5px;
  color: #9a6b19;
  font-size: 10px;
  line-height: 1.4;
}

.trade-price-mode[hidden] {
  display: none;
}

.trade-quote-top strong.market-tick-up {
  animation: market-price-up 0.75s ease-out;
}

.trade-quote-top strong.market-tick-down {
  animation: market-price-down 0.75s ease-out;
}

@keyframes market-price-up {
  0% { color: #fff; background: #0bb563; transform: translateY(-2px); }
  100% { color: #315791; background: transparent; transform: translateY(0); }
}

@keyframes market-price-down {
  0% { color: #fff; background: #df4b52; transform: translateY(2px); }
  100% { color: #315791; background: transparent; transform: translateY(0); }
}

.trade-quote-change {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #df4b52;
  font-size: 13px;
}

.trade-quote-change b {
  margin-top: 4px;
}

.trade-high-low {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
  color: #949ba7;
  font-size: 13px;
}

.trade-high-low span:last-child {
  text-align: right;
}

.trade-high-low b {
  margin-left: 5px;
  color: #434a54;
}

.trade-chart-card {
  margin-top: 12px;
}

.trade-chart-toolbar {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  color: #3f4857;
  font-size: 12px;
}

.trade-chart-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.trade-chart-title i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aeb6c4;
  box-shadow: 0 0 0 3px #eef1f5;
}

.trade-chart-title b {
  color: #315791;
}

.trade-market-state {
  padding: 3px 7px;
  border-radius: 10px;
  color: #8d95a4;
  background: #f2f4f7;
  font-size: 10px;
}

.trade-market-state.is-trading {
  color: #16864c;
  background: #e8f7ef;
}

.trade-market-state.is-simulated {
  color: #9a6b19;
  background: #fff2d9;
}

.trade-market-state.is-trading::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #0bb563;
  content: "";
  animation: kline-live-pulse 1.5s ease-out infinite;
}

.trade-chart-ohlc {
  min-height: 17px;
  margin: 3px 0 0;
  color: #9098a6;
  font-size: 10px;
  letter-spacing: 0.01em;
}

.trade-chart-grid {
  height: 250px;
  margin-top: 2px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #f0f2f6;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.trade-chart-grid svg {
  width: 100%;
  height: 100%;
}

.live-market-chart-detail {
  height: 100%;
  margin: 0;
  color: #315791;
}

.market-kline-chart {
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.market-kline-chart:active { cursor: grabbing; }

.kline-indicators { pointer-events: none; }
.indicator-line { fill: none; stroke-width: 1.05; vector-effect: non-scaling-stroke; opacity: 0.9; }
.indicator-line.i1 { stroke: #e7a52f; }
.indicator-line.i2 { stroke: #4d73c5; }
.indicator-line.i3 { stroke: #a35cc0; }
.kline-indicator-tools { display: flex; align-items: center; gap: 5px; padding: 7px 2px 4px; overflow-x: auto; }
.kline-indicator-tools button { flex: 0 0 auto; border: 1px solid #dce3ee; border-radius: 5px; background: #f6f8fb; color: #68758a; padding: 4px 8px; font-size: 11px; }
.kline-indicator-tools button.active { border-color: #315791; background: #315791; color: #fff; }
.kline-indicator-tools span { margin-left: auto; white-space: nowrap; color: #a0a8b5; font-size: 9px; }

.kline-grid line {
  stroke: #e9edf3;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.kline-grid text,
.kline-axis text {
  fill: #a1a9b6;
  font-family: Arial, sans-serif;
  font-size: 7.5px;
}

.kline-candle {
  opacity: 0;
  animation: kline-candle-reveal 0.28s ease-out forwards;
  animation-delay: var(--kline-delay, 0ms);
}

.market-kline-chart.has-rendered .kline-candle {
  opacity: 1;
  animation: none;
}

.kline-wick {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kline-candle.up .kline-wick {
  stroke: #df4b52;
}

.kline-candle.up .kline-body {
  fill: #df4b52;
  stroke: #df4b52;
}

.kline-candle.down .kline-wick {
  stroke: #19a65b;
}

.kline-candle.down .kline-body {
  fill: #19a65b;
  stroke: #19a65b;
}

.kline-body {
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.kline-price-line {
  stroke-width: 0.8;
  stroke-dasharray: 3 3;
  opacity: 0.72;
  vector-effect: non-scaling-stroke;
}

.kline-sim-line {
  stroke: #bf872a;
  stroke-width: 1;
  stroke-dasharray: 5 3;
  vector-effect: non-scaling-stroke;
}

.kline-sim-text {
  fill: #9a6b19;
  font-size: 7.8px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 2px;
}

.kline-price-line.up { stroke: #df4b52; }
.kline-price-line.down { stroke: #19a65b; }
.kline-price-pill.up { fill: #df4b52; }
.kline-price-pill.down { fill: #19a65b; }

.kline-price-text {
  fill: #fff;
  font-family: Arial, sans-serif;
  font-size: 7.2px;
  font-weight: 700;
}

.kline-live-dot.up { fill: #df4b52; }
.kline-live-dot.down { fill: #19a65b; }

.market-kline-chart:not(.is-trading) .kline-live-dot {
  opacity: 0.45;
}

.market-kline-chart.is-trading .kline-live-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: kline-live-pulse 1.5s ease-out infinite;
}

.market-kline-chart.is-live-tick .kline-candle-latest {
  animation: kline-live-tick 0.8s ease-out;
}

.market-kline-chart.has-rendered.is-live-tick .kline-candle-latest {
  animation: kline-live-tick 0.8s ease-out;
}

.market-kline-chart.is-live-tick.tick-up .kline-price-pill {
  filter: drop-shadow(0 0 3px rgba(223, 75, 82, 0.65));
}

.market-kline-chart.is-live-tick.tick-down .kline-price-pill {
  filter: drop-shadow(0 0 3px rgba(25, 166, 91, 0.65));
}

@keyframes kline-candle-reveal {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes kline-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  55% { opacity: 0.3; transform: scale(1.8); }
}

@keyframes kline-live-tick {
  0% { opacity: 0.25; filter: brightness(1.8); }
  100% { opacity: 1; filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .live-chart-point,
  .trade-loading-spinner,
  .kline-candle,
  .kline-live-dot,
  .trade-market-state.is-trading::before {
    animation: none;
    opacity: 1;
  }
}

.trade-timeframes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.trade-timeframes button {
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: #737b87;
  background: #f1f3f7;
  font-size: 12px;
}

.trade-timeframes button.active {
  color: #fff;
  background: #315791;
}

.product-orders-card {
  margin-top: 12px;
  padding: 15px;
  border-radius: 12px;
  background: #fff;
}

.product-orders-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-orders-card h2 { margin: 0; color: #252c36; font-size: 15px; }
.product-orders-card header p { margin: 4px 0 0; color: #9aa3b1; font-size: 11px; }
.product-orders-card header > span { padding: 4px 9px; border-radius: 999px; color: #315791; background: #edf3fc; font-size: 11px; }

.product-orders-empty {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #9ba4b2;
}

.product-orders-empty strong { color: #687383; font-size: 14px; }
.product-orders-empty p { margin: 7px 0 0; font-size: 11px; }

.product-orders-list { margin-top: 12px; border-top: 1px solid #eef1f5; }

.product-order-row {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  color: #333b47;
  background: transparent;
  text-align: left;
}

.product-order-row:last-child { border-bottom: 0; }
.product-order-row > div { display: flex; flex-direction: column; gap: 4px; }
.product-order-row > div:nth-child(2) { align-items: flex-end; }
.product-order-row strong { color: #315791; font-size: 14px; }
.product-order-row b { font-size: 13px; }
.product-order-row small { color: #a0a8b5; font-size: 10px; }
.product-order-row span { color: #7d8795; font-size: 11px; }
.product-order-row span.profit { color: #2d9b62; }
.product-order-row span.loss { color: #df565b; }
.product-order-row > i { grid-column: 1 / -1; color: #4774bd; font-size: 11px; font-style: normal; }

.trade-history-status {
  margin: 7px 0 0;
  color: #8d95a5;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.trade-action-bar {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: calc(65px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e8ed;
  background: #fff;
}

.trade-action-bar button {
  height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.trade-action-bar .rise { background: #e45157; }
.trade-action-bar .fall { background: #43ad72; }
.trade-action-bar .managed { background: #4774bd; }

.trade-sheet,
.trade-success {
  position: absolute;
  z-index: 40;
  inset: 0;
}

.trade-sheet[hidden],
.trade-success[hidden] {
  display: none;
}

.trade-sheet-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(22, 29, 38, 0.52);
}

.trade-sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 82%;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.trade-sheet-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trade-sheet-panel header strong {
  font-size: 18px;
}

.trade-sheet-panel header button {
  border: 0;
  color: #7d8490;
  background: transparent;
  font-size: 14px;
}

.trade-sheet-panel h2 {
  margin: 20px 0 10px;
  font-size: 14px;
}

.trade-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.trade-amount-grid button {
  height: 36px;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  color: #58616d;
  background: #fff;
  font-size: 12px;
}

.trade-amount-grid button.active {
  color: #fff;
  border-color: #315791;
  background: #315791;
}

.trade-custom-amount input {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid #ccd4df;
  border-radius: 7px;
}

.trade-balance {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  color: #858d98;
  font-size: 12px;
}

.trade-duration-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.trade-duration-row button {
  display: flex;
  height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d9e1;
  border-radius: 8px;
  color: #5c6470;
  background: #fff;
}

.trade-duration-row button.active {
  color: #315791;
  border-color: #315791;
  background: #f0f5ff;
}

.trade-duration-row b { font-size: 15px; }
.trade-duration-row small,
.trade-duration-row span { font-size: 10px; }

.trade-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.trade-summary span {
  display: flex;
  justify-content: space-between;
  padding: 9px;
  border-radius: 7px;
  color: #858d98;
  background: #f5f7fa;
  font-size: 12px;
}

.trade-summary b { color: #39414d; }

.trade-confirm {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #315791;
  font-size: 14px;
  font-weight: 600;
}

.trade-success {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 29, 38, 0.55);
}

.trade-success section {
  width: 100%;
  padding: 24px 18px 18px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.trade-success-mark {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #45b77a;
  font-size: 28px;
}

.trade-success h2 { margin: 13px 0 7px; font-size: 18px; }
.trade-success p { color: #7b838e; font-size: 13px; line-height: 1.6; }
.trade-success section > div:last-child { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.trade-success button { height: 42px; border: 0; border-radius: 7px; color: #315791; background: #edf3fd; font-size: 13px; }
.trade-success button:last-child { color: #fff; background: #315791; }

/* Reference route coverage pages */
.legacy-page,
.identity-page,
.auth-select-page,
.welcome-page {
  background: #f5f6f8;
}

.interest-page,
.interest-detail-page,
.interest-record-page,
.order-history-page,
.announcement-page,
.news-detail-page {
  background: #fff;
}

.legacy-blue-header {
  border-bottom: 0;
  color: #fff;
  background: #3478ed;
}

.legacy-scroll {
  padding: 16px;
}

.welcome-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  flex-direction: column;
  padding: 12vh 26px 20vh;
}

.welcome-page > img {
  width: 190px;
  max-width: 72%;
}

.welcome-progress {
  position: relative;
  width: min(298px, 82vw);
  height: 7px;
  margin-top: auto;
  border-radius: 999px;
  background: #fff;
}

.welcome-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e6bdb, #fff);
}

.welcome-progress b {
  position: absolute;
  right: 0;
  top: 14px;
  color: #222;
  font-size: 12px;
}

.welcome-page > button {
  margin-top: 46px;
  border: 0;
  color: #315791;
  background: transparent;
  font-size: 14px;
}

.news-detail-card,
.announcement-card,
.legacy-detail-table,
.legacy-form label,
.identity-form > label,
.identity-type-row {
  border-radius: 12px;
  background: #fff;
}

.news-detail-card {
  padding: 20px 18px;
}

.news-detail-card h2 {
  margin: 0;
  color: #111;
  font-size: 18px;
  line-height: 1.45;
}

.news-detail-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #999;
  font-size: 12px;
}

.news-detail-card p {
  margin: 16px 0 0;
  color: #333;
  font-size: 14px;
  line-height: 1.75;
}

.announcement-card {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 17px 16px;
  border: 0;
  color: #222;
  text-align: left;
  box-shadow: 0 4px 16px rgba(31, 45, 61, 0.05);
}

.announcement-card span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.announcement-card strong { font-size: 15px; }
.announcement-card small { color: #9aa1ad; font-size: 12px; }
.announcement-card b { color: #b0b7c1; font-size: 20px; }

.legacy-detail-table {
  overflow: hidden;
  border: 1px solid #d9deea;
}

.legacy-detail-table > div,
.legacy-detail-table > label {
  display: grid;
  min-height: 48px;
  grid-template-columns: 90px 1fr;
  align-items: center;
  border-bottom: 1px solid #d9deea;
}

.legacy-detail-table > :last-child { border-bottom: 0; }
.legacy-detail-table span { padding: 0 14px; color: #333; font-size: 13px; }
.legacy-detail-table strong { padding: 0 14px; color: #606875; font-size: 13px; text-align: right; }
.legacy-detail-table input { min-width: 0; height: 47px; padding: 0 14px; border: 0; outline: 0; background: transparent; font-size: 14px; }

.legacy-empty {
  min-height: 420px;
}

.order-history-link,
.interest-record-link {
  display: block;
  margin: 18px auto;
  border: 0;
  color: #315791;
  background: transparent;
  font-size: 13px;
}

.legacy-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legacy-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  background: transparent;
}

.legacy-form label > span,
.legacy-form legend {
  color: #222;
  font-size: 15px;
}

.legacy-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  color: #222;
  background: #fff;
  font-size: 14px;
}

.legacy-form > button,
.identity-submit,
.interest-confirm {
  width: 100%;
  height: 49px;
  margin-top: 6px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #3b5f9d;
  font-size: 16px;
  font-weight: 600;
}

.legacy-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.legacy-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 109px);
  gap: 16px;
  margin-top: 14px;
}

.legacy-choice-grid button {
  height: 42px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  color: #222;
  background: #fff;
  font-size: 16px;
}

.legacy-choice-grid button.active {
  border: 2px solid #315791;
  color: #315791;
}

.auth-select-scroll {
  padding: 16px;
}

.auth-select-page .inner-back,
.identity-page .inner-back {
  width: 32px;
  height: 32px;
  align-self: center;
  margin-left: 15px;
  border-radius: 50%;
  color: #fff;
  background: #c8c8cc;
}

.auth-select-page .inner-back svg,
.identity-page .inner-back svg {
  width: 19px;
  height: 19px;
}

.auth-select-scroll > button {
  display: flex;
  width: 100%;
  height: 59px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #222;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 45, 61, 0.05);
  font-size: 15px;
}

.auth-select-scroll > button span:last-child { color: #666; font-size: 14px; }
.auth-select-scroll b { color: #c3c8d0; font-size: 20px; }

.bankcard-scroll {
  padding: 0 16px 24px;
  background: #fff;
}

.bankcard-tabs {
  display: flex;
  height: 49px;
  gap: 28px;
  align-items: center;
  padding-left: 58px;
}

.bankcard-tabs button {
  position: relative;
  height: 100%;
  border: 0;
  color: #333;
  background: transparent;
  font-size: 16px;
}

.bankcard-tabs button.active { color: #111; font-weight: 600; }
.bankcard-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 20px; height: 3px; border-radius: 99px; background: #3478ed; transform: translateX(-50%); }

.bankcard-panel { min-height: 530px; }
.bankcard-empty { display: flex; min-height: 410px; align-items: center; justify-content: center; flex-direction: column; color: #9099a6; }
.bankcard-empty > div { font-size: 42px; }
.bankcard-empty strong { margin-top: 12px; font-size: 14px; font-weight: 500; }
.bankcard-empty button { min-width: 124px; height: 40px; margin-top: 18px; border: 0; border-radius: 7px; color: #fff; background: #315791; font-size: 14px; }

.identity-scroll {
  padding: 12px 16px 40px;
}

.identity-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.identity-form > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: transparent;
}

.identity-form > label > span {
  color: #7d8591;
  font-size: 13px;
}

.identity-form > label > input:not([type="file"]) {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  font-size: 14px;
}

.identity-type-row {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  color: #7d8591;
  font-size: 13px;
}

.identity-type-row strong { color: #333; font-size: 14px; }

.legacy-upload {
  position: relative;
}

.legacy-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.legacy-upload i {
  display: flex;
  width: 100%;
  height: 150px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 11px;
  color: #aab1ba;
  background: #fff;
  font-size: 42px;
  font-style: normal;
}

.legacy-upload i.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-upload small { color: #9aa1ad; font-size: 12px; text-align: center; }

.interest-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border-bottom: 1px solid #aeb7d0;
}

.interest-table > * {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #aeb7d0;
  color: #222;
  font-size: 12px;
  text-align: center;
}

.interest-table > :last-child { border-right: 0; }
.interest-head > * { color: #3478ed; font-weight: 700; }
.interest-row button { min-height: 28px; margin: 6px; border: 0; border-radius: 5px; color: #fff; background: #3478ed; }
.interest-confirm { margin-top: 32px; background: #3478ed; }
.interest-detail-table > div,
.interest-detail-table > label { grid-template-columns: 90px 1fr; }
.interest-detail-table strong { text-align: left; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px));
  max-width: min(84vw, 360px);
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: rgba(24, 30, 38, 0.88);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 479px) {
  html,
  body {
    background: var(--page);
  }

  .mobile-page {
    width: 100%;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.trade-countdown {
  margin: 10px 0 0;
  color: #315791;
  font-weight: 700;
  text-align: center;
}
