/* V83 home visual rebuild — batch 2: background, brand and hero. */
.home-screen {
  width: 100%;
  max-width: 430px;
  margin-right: auto;
  margin-left: auto;
  min-height: 100dvh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 83% 8%, rgba(185, 218, 255, .48), transparent 25%),
    radial-gradient(circle at 13% 22%, rgba(255, 255, 255, .88), transparent 31%),
    linear-gradient(180deg, #f3f8ff 0%, #f7faff 57%, #f2f7fd 100%);
}

@media (min-width: 431px) {
  body:has(.home-screen) {
    background: #edf3fb;
  }
  .home-screen {
    box-shadow: 0 0 42px rgba(32, 73, 126, .1);
  }
}

.home-screen > .home-hero {
  position: relative;
  min-height: clamp(238px, 62vw, 258px);
}

.home-hero__copy {
  top: clamp(78px, 20.5vw, 86px);
  left: clamp(18px, 5.1vw, 22px);
  width: min(62vw, 256px);
}

.home-screen .home-hero::before {
  position: absolute;
  z-index: 3;
  top: clamp(24px, 6.4vw, 28px);
  left: clamp(18px, 5.1vw, 22px);
  color: #176df1;
  content: "⊤  HX GLOBAL PAY";
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 750;
  line-height: 24px;
  letter-spacing: .6px;
  white-space: nowrap;
  text-shadow: 0 3px 10px rgba(35, 117, 238, .11);
}

.home-hero__copy h1 {
  width: min(62vw, 256px);
  min-height: clamp(56px, 15.2vw, 63px);
  margin: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.home-hero__copy h1::before {
  display: block;
  color: transparent;
  background: linear-gradient(180deg, #101827 0 42%, #176fed 48% 100%);
  background-clip: text;
  content: "安全高效的\A平台充值订单服务";
  font-size: clamp(23px, 6.6vw, 28px);
  font-weight: 760;
  line-height: 1.24;
  letter-spacing: -.45px;
  white-space: pre-line;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__copy p {
  width: min(59vw, 238px);
  max-width: none;
  margin-top: 8px;
  color: #667085;
  font-size: clamp(12px, 3.45vw, 14px);
  line-height: 1.55;
  white-space: normal;
}

.home-hero > img,
html[lang="en"] .home-hero > img,
html[lang="vi"] .home-hero > img {
  top: clamp(53px, 13.8vw, 60px);
  right: clamp(-8px, -1.6vw, -4px);
  width: clamp(158px, 43.6vw, 188px);
  height: auto;
  filter: drop-shadow(0 15px 24px rgba(37, 118, 231, .18));
}

.home-hero .header-icon {
  top: clamp(38px, 9.8vw, 43px);
  right: clamp(15px, 4.2vw, 18px);
}

html[lang="en"] .home-hero__copy,
html[lang="vi"] .home-hero__copy,
html[lang="ms"] .home-hero__copy {
  top: clamp(76px, 20vw, 83px);
  left: clamp(18px, 5.1vw, 22px);
  width: min(60vw, 250px);
}

html[lang="en"] .home-hero__copy h1::before {
  content: "Secure and efficient\Aplatform funding orders";
  font-size: clamp(17px, 4.65vw, 20px);
  line-height: 1.26;
}

html[lang="en"] .home-hero__copy h1,
html[lang="vi"] .home-hero__copy h1,
html[lang="ms"] .home-hero__copy h1 {
  font-size: 0;
  line-height: 0;
}

html[lang="vi"] .home-hero__copy h1::before {
  content: "An toàn và hiệu quả\AĐơn nạp tiền nền tảng";
  font-size: clamp(17px, 4.65vw, 20px);
  line-height: 1.28;
}

html[lang="ms"] .home-hero__copy h1::before {
  content: "Selamat dan cekap\APesanan tambah nilai platform";
  font-size: clamp(17px, 4.65vw, 20px);
  line-height: 1.28;
}

html[lang="en"] .home-hero__copy p,
html[lang="vi"] .home-hero__copy p,
html[lang="ms"] .home-hero__copy p {
  width: min(58vw, 238px);
  margin-top: 6px;
  font-size: clamp(10px, 2.85vw, 12px);
  line-height: 1.45;
}

html[lang="en"] .home-screen > .home-hero,
html[lang="vi"] .home-screen > .home-hero {
  min-height: clamp(270px, 70vw, 292px);
}

html[lang="ms"] .home-screen > .home-hero {
  min-height: clamp(292px, 76vw, 318px);
}

@media (max-width: 350px) {
  .home-hero__copy h1::before {
    font-size: 21px;
  }
  html[lang="en"] .home-hero__copy h1::before,
  html[lang="vi"] .home-hero__copy h1::before,
  html[lang="ms"] .home-hero__copy h1::before {
    font-size: 17px;
  }
  .home-hero > img,
  html[lang="en"] .home-hero > img,
  html[lang="vi"] .home-hero > img {
    right: -14px;
    width: 151px;
  }
}

/* V83 final review fix: native page scrolling, real brand mark and shared navigation geometry. */
html:has(.home-screen),
body:has(.home-screen) {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

body:has(.home-screen) #root {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
}

.home-screen,
html[data-android-scroll="true"] .home-screen,
html[data-redmi-scroll="true"] .home-screen {
  height: auto !important;
  max-height: none !important;
  min-height: 100dvh;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

.home-screen .home-hero::before {
  top: clamp(20px, 5.4vw, 24px);
  display: flex;
  min-height: 28px;
  padding-left: 34px;
  align-items: center;
  content: "HX GLOBAL PAY";
  background: left center / 28px 28px no-repeat url("/assets/hx-brand-mark.svg");
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.2;
}

.home-screen.has-navigation {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.home-screen > .bottom-navigation {
  right: auto;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 430px;
  min-height: calc(72px + env(safe-area-inset-bottom));
  height: auto;
  padding: 0 0 env(safe-area-inset-bottom);
  overflow: visible;
  border: 0;
  border-top: 1px solid #edf1f5;
  border-radius: 0;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -5px 18px rgba(21,61,112,.045);
  transform: translateX(-50%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item {
  height: 72px;
  padding: 0 2px;
  color: #616b7a;
  font-size: clamp(9px, 2.7vw, 11px);
  line-height: 1.25;
  text-align: center;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__icon {
  width: 30px;
  height: 29px;
  margin-top: 9px;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item > span:last-child {
  min-height: 0;
  margin-top: 3px;
  padding: 0 2px;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon {
  width: 62px;
  height: 62px;
  margin-top: -2px;
  border: 4px solid #f5f8fc;
  background: linear-gradient(180deg, #1685ff, #0875f5);
  box-shadow: 0 8px 19px rgba(12,120,244,.28);
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon svg {
  width: 30px;
  height: 30px;
  transform: translateY(-7px);
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange > span:last-child {
  top: 40px;
  left: 50%;
  width: 62px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: inherit;
  line-height: inherit;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 374px) {
  html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon {
    width: 58px;
    height: 58px;
  }
  html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange > span:last-child {
    top: 39px;
    width: 58px;
  }
}

/* Align the notification control with the brand row. */
.home-screen .home-hero .header-icon {
  top: clamp(20px, 5.4vw, 24px);
}

/* V83 batch 7: smallest-phone density and tablet containment. */
@media (max-width: 350px) {
  .home-screen > .home-hero {
    min-height: 232px;
  }
  html[lang="en"] .home-screen > .home-hero,
  html[lang="vi"] .home-screen > .home-hero {
    min-height: 266px;
  }
  html[lang="ms"] .home-screen > .home-hero {
    min-height: 292px;
  }
  .home-screen > .home-exchange-card {
    padding-right: 10px;
    padding-left: 10px;
  }
  .home-screen .home-flow {
    grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr);
  }
  .home-screen .coin-caption {
    padding-right: 3px;
    padding-left: 3px;
  }
}

/* V83 batch 6: safety strip and floating bottom navigation. */
.home-screen .home-data-card > .announcement {
  display: flex;
  color: #176be9;
  align-items: center;
}

.home-screen .announcement__megaphone {
  color: #176ff0;
}

.home-screen .announcement__text {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.home-screen .announcement__text::after {
  color: #176be9;
  content: "平台保障交易安全，资金流转稳定可靠";
  font-size: clamp(8px, 2.4vw, 10px) !important;
  font-weight: 560;
}
html[lang="en"] .home-screen .announcement__text::after { content: "Platform safeguards transactions and stable fund flow"; }
html[lang="vi"] .home-screen .announcement__text::after { content: "Nền tảng bảo vệ giao dịch và dòng tiền ổn định"; }
html[lang="ms"] .home-screen .announcement__text::after { content: "Platform melindungi transaksi dan aliran dana stabil"; }

.home-screen .home-data-card > .announcement::after {
  order: 2;
  flex: 0 0 auto;
  margin-left: 7px;
  color: #176be9;
  content: "了解更多";
  font-size: clamp(8px, 2.3vw, 10px);
  font-weight: 600;
  white-space: nowrap;
}
html[lang="en"] .home-screen .home-data-card > .announcement::after { content: "Learn more"; }
html[lang="vi"] .home-screen .home-data-card > .announcement::after { content: "Tìm hiểu"; }
html[lang="ms"] .home-screen .home-data-card > .announcement::after { content: "Ketahui lagi"; }

.home-screen .home-data-card > .announcement > svg:last-child {
  order: 3;
  width: 15px;
  margin-left: 2px;
}

.home-screen.has-navigation {
  padding-bottom: calc(98px + env(safe-area-inset-bottom));
}

.home-screen > .bottom-navigation {
  right: auto;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 50%;
  width: calc(100% - 28px);
  max-width: 402px;
  min-height: 66px;
  height: 66px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(236, 240, 246, .92);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 13px 30px rgba(29, 75, 132, .13), 0 2px 8px rgba(31, 65, 108, .04);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-screen > .bottom-navigation .bottom-navigation__item {
  height: 66px;
  color: #505c6e;
  font-size: clamp(8.5px, 2.55vw, 10.5px);
  line-height: 1.15;
}

.home-screen > .bottom-navigation .bottom-navigation__icon {
  width: 28px;
  height: 27px;
  margin-top: 8px;
}

.home-screen > .bottom-navigation .bottom-navigation__item > span:last-child {
  min-height: 0;
  margin-top: 2px;
}

.home-screen > .bottom-navigation .bottom-navigation__item.active {
  color: #0878f5;
}

.home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon {
  width: 62px;
  height: 62px;
  margin-top: -7px;
  border: 4px solid #f5f8fc;
  background: linear-gradient(155deg,#2b92ff,#1074f7 62%,#1768e9);
  box-shadow: 0 10px 22px rgba(10, 113, 235, .35);
}

.home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon svg {
  width: 30px;
  height: 30px;
  transform: translateY(-7px);
}

.home-screen > .bottom-navigation .bottom-navigation__item.exchange > span:last-child {
  top: 36px;
  width: 58px;
  min-height: 20px;
  padding: 0;
  color: #fff;
  font-size: clamp(8.5px, 2.45vw, 10px);
  line-height: 1.1;
}

html[lang="en"]:has(.home-screen) .bottom-navigation__item,
html[lang="vi"]:has(.home-screen) .bottom-navigation__item,
html[lang="ms"]:has(.home-screen) .bottom-navigation__item {
  padding-right: 1px;
  padding-left: 1px;
  font-size: clamp(7.8px, 2.3vw, 9.5px);
  line-height: 1.1;
}

@media (max-width: 350px) {
  .home-screen > .bottom-navigation {
    width: calc(100% - 18px);
    border-radius: 19px;
  }
  .home-screen .home-data-card > .announcement::after {
    margin-left: 4px;
    font-size: 7.5px;
  }
}

/* V83 batch 5: order ticker and live data overview. */
.home-screen > .exchange-activity {
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(229, 237, 248, .82);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 9px 22px rgba(31, 82, 144, .05);
}

.home-screen .exchange-activity__title {
  height: 100%;
  padding: 0 9px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a96ff, #176cf1);
  gap: 0;
}

.home-screen .exchange-activity__title > span,
.home-screen .exchange-activity__title > small {
  display: none;
}

.home-screen .exchange-activity__title strong {
  font-size: 0;
  line-height: 1;
}

html[lang="en"] .home-screen .exchange-activity__title strong,
html[lang="vi"] .home-screen .exchange-activity__title strong,
html[lang="ms"] .home-screen .exchange-activity__title strong {
  font-size: 0;
  line-height: 1;
}

.home-screen .exchange-activity__title strong::after {
  content: "公告";
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
html[lang="en"] .home-screen .exchange-activity__title strong::after { content: "News"; }
html[lang="vi"] .home-screen .exchange-activity__title strong::after { content: "Tin"; }
html[lang="ms"] .home-screen .exchange-activity__title strong::after { content: "Info"; }

.home-screen .exchange-activity__viewport {
  padding-left: 6px;
  mask-image: linear-gradient(90deg,#000 0,#000 94%,transparent);
  -webkit-mask-image: linear-gradient(90deg,#000 0,#000 94%,transparent);
}

.home-screen .exchange-activity__item,
html[lang="en"] .home-screen .exchange-activity__item,
html[lang="vi"] .home-screen .exchange-activity__item,
html[lang="ms"] .home-screen .exchange-activity__item {
  color: #748196;
  font-size: clamp(8px, 2.3vw, 10px);
  line-height: 20px;
}

.home-screen > .home-data-card,
html[lang="en"] .home-screen > .home-data-card,
html[lang="vi"] .home-screen > .home-data-card,
html[lang="ms"] .home-screen > .home-data-card {
  position: relative;
  min-height: 0;
  margin-top: 12px;
  padding: 0 8px 9px;
  overflow: hidden;
  border: 1px solid rgba(233, 239, 247, .82);
  border-radius: clamp(17px, 5vw, 21px);
  background: rgba(255,255,255,.96);
  box-shadow: 0 13px 30px rgba(31, 82, 144, .06), 0 2px 7px rgba(30, 66, 109, .025);
}

.home-screen > .home-data-card::before {
  display: block;
  height: 42px;
  padding: 14px 4px 0;
  color: #152033;
  content: "实时数据概览";
  font-size: clamp(12px, 3.5vw, 15px);
  font-weight: 720;
  line-height: 20px;
}
html[lang="en"] .home-screen > .home-data-card::before { content: "Live Data Overview"; }
html[lang="vi"] .home-screen > .home-data-card::before { content: "Tổng quan dữ liệu trực tiếp"; }
html[lang="ms"] .home-screen > .home-data-card::before { content: "Gambaran Data Masa Nyata"; }

.home-screen .home-stats {
  position: relative;
  min-height: 129px;
  padding: 8px 2px 6px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.home-screen .home-stats::before {
  position: absolute;
  right: 3px;
  bottom: calc(100% + 10px);
  color: #8793a5;
  content: "数据每分钟更新  ↻";
  font-size: clamp(7.5px, 2.2vw, 9.5px);
  font-weight: 450;
  line-height: 16px;
  white-space: nowrap;
}
html[lang="en"] .home-screen .home-stats::before { content: "Updated every minute  ↻"; }
html[lang="vi"] .home-screen .home-stats::before { content: "Cập nhật mỗi phút  ↻"; }
html[lang="ms"] .home-screen .home-stats::before { content: "Dikemas kini setiap minit  ↻"; }

.home-screen .home-stats > div,
html[lang="en"] .home-screen .home-stats > div,
html[lang="vi"] .home-screen .home-stats > div,
html[lang="ms"] .home-screen .home-stats > div {
  position: relative;
  min-width: 0;
  padding: 0 clamp(7px, 2.4vw, 10px) 24px;
}

.home-screen .home-stats small,
html[lang="en"] .home-screen .home-stats small,
html[lang="vi"] .home-screen .home-stats small,
html[lang="ms"] .home-screen .home-stats small {
  display: flex;
  min-height: 27px;
  color: #657286;
  font-size: clamp(7.5px, 2.2vw, 9.5px);
  line-height: 1.3;
  white-space: normal;
  align-items: flex-start;
}

.home-screen .home-stats strong,
html[lang="en"] .home-screen .home-stats strong,
html[lang="vi"] .home-screen .home-stats strong,
html[lang="ms"] .home-screen .home-stats strong {
  margin-top: 3px;
  color: #111827;
  font-size: clamp(14px, 4.1vw, 18px);
  line-height: 1.3;
}

.home-screen .home-stats > div:first-child strong,
html[lang="en"] .home-screen .home-stats > div:first-child strong,
html[lang="vi"] .home-screen .home-stats > div:first-child strong,
html[lang="ms"] .home-screen .home-stats > div:first-child strong {
  color: #09b978;
  font-size: clamp(18px, 5vw, 22px);
}

.home-screen .home-stats > div > span,
html[lang="en"] .home-screen .home-stats > div > span,
html[lang="vi"] .home-screen .home-stats > div > span,
html[lang="ms"] .home-screen .home-stats > div > span {
  min-height: 24px;
  margin-top: 3px;
  color: #8a95a6;
  font-size: clamp(7px, 2vw, 8.8px);
  line-height: 1.3;
  white-space: normal;
}

.home-screen .home-stats > div::after {
  position: absolute;
  right: 7px;
  bottom: 3px;
  left: 7px;
  height: 22px;
  content: "";
  background: center bottom / 100% 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22'%3E%3Cpath d='M0 18 L9 16 L17 19 L27 11 L38 14 L49 8 L58 13 L70 6 L80 10 L90 5 L100 9 L100 22 L0 22Z' fill='%2322c98d12'/%3E%3Cpath d='M0 18 L9 16 L17 19 L27 11 L38 14 L49 8 L58 13 L70 6 L80 10 L90 5 L100 9' fill='none' stroke='%2319be83' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.home-screen .home-stats > div:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22'%3E%3Cpath d='M0 19 L9 15 L18 17 L29 9 L39 13 L48 7 L58 10 L69 5 L79 12 L89 7 L100 9 L100 22 L0 22Z' fill='%23247cff12'/%3E%3Cpath d='M0 19 L9 15 L18 17 L29 9 L39 13 L48 7 L58 10 L69 5 L79 12 L89 7 L100 9' fill='none' stroke='%232276f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.home-screen .home-stats > div:nth-child(3)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22'%3E%3Cpath d='M0 12 L10 10 L20 16 L31 18 L42 11 L52 15 L61 6 L71 12 L81 5 L90 10 L100 9 L100 22 L0 22Z' fill='%23ff9a1f12'/%3E%3Cpath d='M0 12 L10 10 L20 16 L31 18 L42 11 L52 15 L61 6 L71 12 L81 5 L90 10 L100 9' fill='none' stroke='%23f39a22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.home-screen .home-data-card > .announcement,
html[lang="en"] .home-screen .home-data-card > .announcement,
html[lang="vi"] .home-screen .home-data-card > .announcement,
html[lang="ms"] .home-screen .home-data-card > .announcement {
  min-height: 40px;
  height: auto;
  margin: 1px 0 0;
  padding: 7px 9px;
  border-radius: 10px;
  background: linear-gradient(90deg,#edf5ff,#f4f8ff);
}

@media (max-width: 350px) {
  .home-screen .home-stats > div {
    padding-right: 5px;
    padding-left: 5px;
  }
  .home-screen .home-stats::before {
    font-size: 7px;
  }
}

/* V83 batch 4: compact four-column service advantages. */
.home-screen > .home-features,
html[lang="en"] .home-screen > .home-features,
html[lang="vi"] .home-screen > .home-features,
html[lang="ms"] .home-screen > .home-features {
  min-height: 0;
  margin-top: 14px;
  padding: 14px 5px 12px;
  border: 1px solid rgba(235, 240, 248, .78);
  border-radius: clamp(17px, 5vw, 21px);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 13px 30px rgba(31, 82, 144, .065), 0 2px 7px rgba(30, 66, 109, .025);
  align-items: start;
  column-gap: 2px;
}

.home-screen .home-feature,
html[lang="en"] .home-screen .home-feature,
html[lang="vi"] .home-screen .home-feature,
html[lang="ms"] .home-screen .home-feature {
  min-width: 0;
  padding: 0 3px;
}

.home-screen .home-feature .icon-bubble.medium,
html[lang="en"] .home-screen .home-feature .icon-bubble.medium,
html[lang="vi"] .home-screen .home-feature .icon-bubble.medium,
html[lang="ms"] .home-screen .home-feature .icon-bubble.medium {
  width: clamp(40px, 10.7vw, 46px);
  height: clamp(40px, 10.7vw, 46px);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.36);
}

.home-screen .home-feature strong,
html[lang="en"] .home-screen .home-feature strong,
html[lang="vi"] .home-screen .home-feature strong,
html[lang="ms"] .home-screen .home-feature strong {
  display: flex;
  min-height: 28px;
  margin-top: 5px;
  color: #172033;
  font-size: clamp(10.5px, 2.95vw, 12.5px);
  font-weight: 720;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  align-items: center;
  justify-content: center;
}

.home-screen .home-feature small,
html[lang="en"] .home-screen .home-feature small,
html[lang="vi"] .home-screen .home-feature small,
html[lang="ms"] .home-screen .home-feature small {
  display: block;
  min-height: 31px;
  margin-top: 1px;
  padding: 0;
  color: #718096;
  font-size: clamp(8.3px, 2.3vw, 9.8px);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="en"] .home-screen > .home-features,
html[lang="vi"] .home-screen > .home-features,
html[lang="ms"] .home-screen > .home-features {
  padding-right: 3px;
  padding-left: 3px;
}

html[lang="en"] .home-screen .home-feature,
html[lang="vi"] .home-screen .home-feature,
html[lang="ms"] .home-screen .home-feature {
  padding-right: 2px;
  padding-left: 2px;
}

html[lang="en"] .home-screen .home-feature strong,
html[lang="vi"] .home-screen .home-feature strong,
html[lang="ms"] .home-screen .home-feature strong {
  min-height: 35px;
  font-size: clamp(8.5px, 2.35vw, 10.5px);
  line-height: 1.25;
}

html[lang="en"] .home-screen .home-feature small,
html[lang="vi"] .home-screen .home-feature small,
html[lang="ms"] .home-screen .home-feature small {
  min-height: 48px;
  font-size: clamp(7.2px, 2.05vw, 8.8px);
  line-height: 1.32;
}

@media (max-width: 350px) {
  .home-screen > .home-features,
  html[lang="en"] .home-screen > .home-features,
  html[lang="vi"] .home-screen > .home-features,
  html[lang="ms"] .home-screen > .home-features {
    padding-right: 2px;
    padding-left: 2px;
  }
  .home-screen .home-feature,
  html[lang="en"] .home-screen .home-feature,
  html[lang="vi"] .home-screen .home-feature,
  html[lang="ms"] .home-screen .home-feature {
    padding-right: 1px;
    padding-left: 1px;
  }
  html[lang="en"] .home-screen .home-feature strong,
  html[lang="vi"] .home-screen .home-feature strong,
  html[lang="ms"] .home-screen .home-feature strong {
    font-size: 8px;
  }
  html[lang="en"] .home-screen .home-feature small,
  html[lang="vi"] .home-screen .home-feature small,
  html[lang="ms"] .home-screen .home-feature small {
    font-size: 6.8px;
  }
}

/* V83 batch 3: service pills and order-hall card. */
.home-hero-trust {
  position: absolute;
  z-index: 5;
  right: clamp(16px, 4.1vw, 18px);
  bottom: 13px;
  left: clamp(18px, 5.1vw, 22px);
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(12px, 5vw, 24px);
}

.home-hero-trust > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: #27344a;
  gap: 5px;
}

.home-hero-trust > span > svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #1677f2;
  background: #e7f2ff;
}

.home-hero-trust small {
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.2;
  white-space: nowrap;
}

.home-hero-trust .security small::after { content: "安全可靠"; }
.home-hero-trust .speed small::after { content: "快速处理"; }
.home-hero-trust .service small::after { content: "7×24h 客服"; }
html[lang="en"] .home-hero-trust .security small::after { content: "Secure"; }
html[lang="en"] .home-hero-trust .speed small::after { content: "Fast"; }
html[lang="en"] .home-hero-trust .service small::after { content: "24/7 Support"; }
html[lang="vi"] .home-hero-trust .security small::after { content: "An toàn"; }
html[lang="vi"] .home-hero-trust .speed small::after { content: "Xử lý nhanh"; }
html[lang="vi"] .home-hero-trust .service small::after { content: "Hỗ trợ 24/7"; }
html[lang="ms"] .home-hero-trust .security small::after { content: "Selamat"; }
html[lang="ms"] .home-hero-trust .speed small::after { content: "Proses pantas"; }
html[lang="ms"] .home-hero-trust .service small::after { content: "Sokongan 24/7"; }

.home-screen > .home-exchange-card {
  position: relative;
  min-height: clamp(250px, 68vw, 282px);
  padding: clamp(18px, 4.8vw, 21px) clamp(14px, 4.1vw, 18px) 15px;
  overflow: hidden;
  border: 1px solid rgba(232, 239, 249, .75);
  border-radius: clamp(18px, 5.6vw, 23px);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 15px 34px rgba(35, 91, 159, .075), 0 2px 8px rgba(31, 67, 111, .035);
}

.home-screen > .home-exchange-card h2 {
  max-width: 64%;
  margin: 0;
  color: #121b2d;
  font-size: clamp(17px, 4.55vw, 20px);
  font-weight: 720;
  line-height: 1.35;
  text-align: left;
}

.home-screen > .home-exchange-card > p {
  position: absolute;
  top: 22px;
  right: clamp(14px, 4.1vw, 18px);
  max-width: 34%;
  margin: 0;
  color: #8a96a8;
  font-size: 0;
  line-height: 1.35;
  text-align: right;
}

.home-screen > .home-exchange-card > p::after {
  content: "流程简单 · 快速结算";
  font-size: clamp(8px, 2.25vw, 10px);
}
html[lang="en"] .home-screen > .home-exchange-card > p::after { content: "Simple process · Fast settlement"; }
html[lang="vi"] .home-screen > .home-exchange-card > p::after { content: "Quy trình đơn giản · Thanh toán nhanh"; }
html[lang="ms"] .home-screen > .home-exchange-card > p::after { content: "Proses mudah · Penyelesaian pantas"; }

.home-screen .home-flow {
  display: grid;
  height: clamp(112px, 31vw, 128px);
  margin-top: 15px;
  grid-template-columns: minmax(0, 1fr) clamp(28px, 9vw, 40px) minmax(0, 1fr);
  align-items: center;
  gap: 3px;
}

.home-screen .coin-caption {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 24px 5px 9px;
  border: 1px solid #c7eede;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(243,255,251,.96), rgba(235,250,246,.78));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.home-screen .coin-caption:last-child {
  border-color: #cfe0ff;
  background: linear-gradient(145deg, rgba(247,250,255,.98), rgba(238,245,255,.82));
}

.home-screen .coin-caption::before {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, #20d797, #0aba7c);
  content: "01";
  font-size: 11px;
  font-weight: 750;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(11, 190, 125, .18);
}

.home-screen .coin-caption:last-child::before {
  background: linear-gradient(135deg, #3487ff, #1766ee);
  content: "02";
  box-shadow: 0 4px 10px rgba(32, 111, 241, .18);
}

.home-screen .coin-caption > svg {
  filter: drop-shadow(0 7px 10px rgba(19, 166, 113, .14));
}

.home-screen .coin-caption > span {
  color: #223047;
  font-size: clamp(11px, 3.1vw, 13px);
  line-height: 1.25;
}

.home-screen .coin-caption > span::after {
  display: block;
  margin-top: 4px;
  color: #748196;
  content: "确认金额、网络";
  font-size: clamp(8px, 2.25vw, 10px);
  line-height: 1.2;
  white-space: nowrap;
}
.home-screen .coin-caption:last-child > span::after { content: "结算完成、收益到账"; }
html[lang="en"] .home-screen .coin-caption:first-child > span::after { content: "Confirm amount and network"; }
html[lang="en"] .home-screen .coin-caption:last-child > span::after { content: "Settled and credited"; }
html[lang="vi"] .home-screen .coin-caption:first-child > span::after { content: "Xác nhận số tiền và mạng"; }
html[lang="vi"] .home-screen .coin-caption:last-child > span::after { content: "Hoàn tất và ghi có"; }
html[lang="ms"] .home-screen .coin-caption:first-child > span::after { content: "Sahkan amaun dan rangkaian"; }
html[lang="ms"] .home-screen .coin-caption:last-child > span::after { content: "Selesai dan dikreditkan"; }

.home-screen .home-flow__arrow {
  padding: 0;
  color: #14c486;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1;
}

.home-screen .home-exchange-card .green-button {
  display: flex;
  width: 100%;
  min-height: clamp(43px, 12vw, 50px);
  height: auto;
  margin: 13px 0 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(100deg, #176cf4 0%, #168af2 38%, #18caa0 72%, #18c77d 100%);
  box-shadow: 0 11px 22px rgba(21, 127, 232, .18);
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: clamp(15px, 4.25vw, 18px);
  font-weight: 650;
}

.home-enter-arrow {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

html[lang="en"] .home-screen > .home-exchange-card,
html[lang="vi"] .home-screen > .home-exchange-card,
html[lang="ms"] .home-screen > .home-exchange-card {
  min-height: clamp(270px, 73vw, 304px);
}

html[lang="en"] .home-screen > .home-exchange-card > p,
html[lang="vi"] .home-screen > .home-exchange-card > p,
html[lang="ms"] .home-screen > .home-exchange-card > p {
  top: 20px;
  max-width: 40%;
  font-size: clamp(7.5px, 2.1vw, 9px);
}

html[lang="en"] .home-screen > .home-exchange-card h2,
html[lang="vi"] .home-screen > .home-exchange-card h2,
html[lang="ms"] .home-screen > .home-exchange-card h2 {
  max-width: 100%;
  padding: 0 8px;
  font-size: clamp(15px, 4.1vw, 18px);
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="en"] .home-screen > .home-exchange-card > p,
html[lang="vi"] .home-screen > .home-exchange-card > p,
html[lang="ms"] .home-screen > .home-exchange-card > p {
  position: static;
  max-width: 100%;
  margin: 3px 8px 0;
  font-size: 0;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

html[lang="en"] .home-screen .home-flow,
html[lang="vi"] .home-screen .home-flow,
html[lang="ms"] .home-screen .home-flow {
  margin-top: 10px;
}

html[lang="en"] .home-hero-trust,
html[lang="vi"] .home-hero-trust,
html[lang="ms"] .home-hero-trust {
  gap: clamp(7px, 2.4vw, 12px);
}

html[lang="en"] .home-hero-trust small,
html[lang="vi"] .home-hero-trust small,
html[lang="ms"] .home-hero-trust small {
  font-size: clamp(7.5px, 2.2vw, 10px);
}

@media (max-width: 350px) {
  .home-hero-trust {
    gap: 7px;
  }
  .home-hero-trust > span {
    gap: 3px;
  }
  .home-hero-trust small {
    font-size: 8px;
  }
  .home-screen > .home-exchange-card > p {
    display: none;
  }
}

/* Keep the home navigation identical to the shared navigation after all legacy home overrides. */
.home-screen > .bottom-navigation {
  right: auto;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 430px;
  min-height: calc(72px + env(safe-area-inset-bottom));
  height: auto;
  padding: 0 0 env(safe-area-inset-bottom);
  overflow: visible;
  border: 0;
  border-top: 1px solid #edf1f5;
  border-radius: 0;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -5px 18px rgba(21,61,112,.045);
  transform: translateX(-50%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item {
  height: 72px;
  padding: 0 2px;
  color: #616b7a;
  font-size: clamp(9px, 2.7vw, 11px);
  line-height: 1.25;
  text-align: center;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__icon {
  width: 30px;
  height: 29px;
  margin-top: 9px;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item > span:last-child {
  min-height: 0;
  margin-top: 3px;
  padding: 0 2px;
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon {
  width: 62px;
  height: 62px;
  margin-top: -2px;
  border: 4px solid #f5f8fc;
  background: linear-gradient(180deg, #1685ff, #0875f5);
  box-shadow: 0 8px 19px rgba(12,120,244,.28);
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon svg {
  width: 30px;
  height: 30px;
  transform: translateY(-7px);
}

html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange > span:last-child {
  top: 40px;
  left: 50%;
  width: 62px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: inherit;
  line-height: inherit;
  text-align: center;
  transform: translateX(-50%);
}

@media (max-width: 374px) {
  html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange .bottom-navigation__icon {
    width: 58px;
    height: 58px;
  }
  html:has(.home-screen) .home-screen > .bottom-navigation .bottom-navigation__item.exchange > span:last-child {
    top: 39px;
    width: 58px;
  }
}
