/* Thin overrides on top of origin.css */

/* bottom nav uses <a.nav_item> */
.nav_mobile .nav_item_content .nav_item {
  display: block;
  width: .28rem;
  height: .28rem;
}
.nav_mobile .nav_item_content .nav_item img {
  width: 100%;
  height: 100%;
}

.home-mobile .content .info-buttons .info-button {
  display: block;
  text-align: center;
}
.home-mobile .content .new-feature .feature-icon img {
  width: 100%;
  height: 100%;
}
/* screenshot layout: icon left + text right */
.home-mobile .content .new-feature .new-feature-content {
  display: flex;
  align-items: center;
  gap: .16rem;
}
.home-mobile .content .new-feature .feature-icon {
  margin-bottom: 0 !important;
  flex-shrink: 0;
  width: .4rem !important;
  height: .4rem !important;
}
.home-mobile .content .new-feature .feature-texts {
  flex: 1;
  min-width: 0;
}
.home-mobile .content .new-feature .feature-title {
  margin-bottom: .04rem !important;
}
.home-mobile .content .info-text2 em {
  font-style: normal;
  color: #9ee970;
}
.home-mobile .content .wallet {
  cursor: pointer;
}
.home-mobile {
  padding-bottom: 1.2rem;
}

/* cards noise layer */
.mains .cards .maskings {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-image: url(../img/noise.4d21caf6.png);
  z-index: 1;
  pointer-events: none;
}

/* ensure schedule icon inline */
.mains .cards .cards-main .schedule img {
  display: inline-block;
  width: .16rem;
  height: .16rem;
  vertical-align: middle;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: .12rem .2rem;
  border-radius: .1rem;
  z-index: 99;
  display: none;
  max-width: 80%;
  text-align: center;
  font-size: .14rem;
}

/* inner pages reuse top nav */
.page-pad {
  padding: .9rem .24rem 1.2rem;
  background: #fff;
  min-height: 100vh;
}
.page-pad.dark {
  background: #fff;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .16rem 0;
  border-bottom: .01rem solid rgba(0,0,0,.06);
}
.list-row .name { font-weight: 700; font-size: .16rem; }
.list-row .sub { color: #888; font-size: .12rem; margin-top: .04rem; }
.up { color: #44b400; }
.down { color: #ff5858; }
.change-pill {
  min-width: .72rem;
  text-align: center;
  padding: .06rem 0;
  border-radius: .08rem;
  font-size: .13rem;
  font-weight: 700;
}
.change-pill.up { background: rgba(68,180,0,.12); color: #44b400; }
.change-pill.down { background: rgba(255,88,88,.12); color: #ff5858; }

.chips { display: flex; gap: .08rem; overflow-x: auto; margin-bottom: .12rem; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: 0 0 auto;
  padding: .08rem .14rem;
  border-radius: .4rem;
  background: #f2f2f2;
  color: #666;
  font-size: .13rem;
  border: none;
}
.chip-btn.active {
  background: rgba(255,220,97,.25);
  color: #000;
  font-weight: 700;
}

/* Top bar language badge (EN / ZH) — home & pages */
.nav_mobile_top .nav_content .nav_right {
  display: flex;
  align-items: center;
  position: relative;
}
.nav_mobile_top .lang-switch {
  position: relative;
  margin-left: .12rem;
}
.nav_mobile_top .lang-badge.action {
  margin-left: 0;
  width: .36rem;
  height: .36rem;
  border: .02rem solid #000;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: .11rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.nav_mobile_top .lang-dropdown {
  position: absolute;
  top: calc(100% + .08rem);
  right: 0;
  min-width: 1.6rem;
  background: #fff;
  border: .01rem solid rgba(0, 0, 0, .08);
  border-radius: .12rem;
  box-shadow: 0 .08rem .2rem rgba(0, 0, 0, .12);
  z-index: 30;
  overflow: hidden;
}
.nav_mobile_top .lang-dropdown .lang-opt {
  display: block;
  padding: .12rem .14rem;
  font-size: .13rem;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.nav_mobile_top .lang-dropdown .lang-opt.active {
  background: #f5f5f5;
  font-weight: 700;
}
