:root {
  --blue: #4197ff;
  --blue-dark: #1e4fae;
  --ink: #2d3038;
  --muted: #777d8c;
  --line: #e7eaf0;
  --panel: #ffffff;
  --soft: #f1f4fa;
  --soft-blue: #e7edf8;
  --red: #ff4f70;
  --green: #59b52b;
  --orange: #f0a03a;
  --shadow: 0 8px 22px rgba(28, 35, 48, 0.11);
  --ios-topbar-height: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(65, 151, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #f7f9fc 0%, #eef2f7 48%, #f9fbfd 100%);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  height: min(920px, calc(100vh - 48px));
  min-height: 780px;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(21, 30, 45, 0.22);
}

.status-bar {
  height: 54px;
  padding: 18px 34px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 20px;
  font-weight: 800;
  color: #000;
  background: #fff;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal {
  width: 24px;
  height: 15px;
  background: linear-gradient(90deg, #000 0 18%, transparent 18% 25%, #000 25% 43%, transparent 43% 50%, #000 50% 68%, transparent 68% 75%, #000 75%);
  border-radius: 3px;
}

.wifi {
  width: 22px;
  height: 16px;
  border: 4px solid #000;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.battery {
  width: 28px;
  height: 14px;
  border: 2px solid #777;
  border-radius: 4px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #111;
  border-radius: 2px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 3px;
  width: 3px;
  height: 6px;
  background: #777;
  border-radius: 0 2px 2px 0;
}

.app-header {
  position: relative;
  z-index: 5;
  height: 70px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  border-bottom: 1px solid rgba(229, 232, 239, 0.8);
  background: #fff;
}

.app-header h1 {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
  color: #050609;
  letter-spacing: 0;
}

.icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.back-btn {
  grid-column: 1;
}

.bell-btn {
  grid-column: 3;
}

.hidden {
  display: none !important;
}

.chevron-left,
.chevron-right {
  width: 18px;
  height: 18px;
  border-left: 4px solid #303441;
  border-bottom: 4px solid #303441;
  transform: rotate(45deg);
  display: inline-block;
}

.chevron-right {
  transform: rotate(225deg);
  border-color: #303441;
}

.bell {
  width: 25px;
  height: 29px;
  border: 4px solid #303441;
  border-top-width: 3px;
  border-radius: 15px 15px 11px 11px;
  position: relative;
}

.bell::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #303441;
}

.bell::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -8px;
  width: 9px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: #303441;
}

.dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f6a321;
}

.app-scroll {
  height: calc(100% - 54px - 70px - 86px);
  overflow-y: auto;
  background: linear-gradient(#fbfcfe, #fff);
  scroll-behavior: smooth;
}

.phone.detail-mode .app-scroll {
  height: calc(100% - 54px - 70px);
}

.phone.detail-mode .bottom-nav {
  display: none;
}

.app-scroll::-webkit-scrollbar {
  width: 0;
}

.screen {
  display: none;
  padding: 12px 9px 24px;
  animation: screenIn 220ms ease-out;
}

.screen.active {
  display: block;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lift {
  background: var(--panel);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  padding: 18px 22px 14px;
}

.summary-card .muted {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.big-number {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: clamp(46px, 12vw, 64px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
}

.convert {
  margin-top: 14px !important;
}

.primary-btn,
.secondary-btn {
  min-width: 96px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 5px;
  font-size: 22px;
  font-weight: 800;
}

.primary-btn {
  color: #fff;
  background: var(--blue);
}

.secondary-btn {
  color: #686f81;
  background: #e9eef8;
}

.loss-strip {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border-radius: 4px;
  background: #ebedf3;
  color: #6d7282;
  font-size: 18px;
  font-weight: 800;
}

.loss-strip b,
.red {
  color: var(--red);
}

.green {
  color: var(--green);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 32px 18px 30px;
  text-align: center;
}

.quick-actions button {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.action-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}

.action-icon::before,
.action-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #303441;
}

.deposit::before {
  width: 4px;
  height: 28px;
  top: 12px;
}

.deposit::after {
  width: 30px;
  height: 4px;
  bottom: 13px;
}

.withdraw::before {
  width: 4px;
  height: 28px;
  top: 14px;
}

.withdraw::after {
  width: 30px;
  height: 4px;
  bottom: 13px;
}

.withdraw {
  transform: rotate(180deg);
}

.swap::before {
  width: 28px;
  height: 4px;
  top: 20px;
}

.swap::after {
  width: 28px;
  height: 4px;
  bottom: 20px;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 800;
}

.segment button {
  height: 48px;
  border-radius: 5px;
}

.segment .active,
.tabs .active {
  background: #e4ebf8;
}

.list-stack {
  display: grid;
  gap: 8px;
}

.investment-card,
.asset-card {
  width: 100%;
  min-height: 108px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  text-align: left;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.investment-card:hover,
.asset-card:hover,
.coin-row:hover {
  transform: translateY(-2px);
}

.coin {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 28%, 100% 72%, 75% 97%, 25% 97%, 0 72%, 0 28%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.38), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.coin::before {
  content: "";
}

.coin.eth {
  background: linear-gradient(145deg, #16191f, #4c4f56);
}

.coin.eth::before {
  content: "♦";
  font-size: 26px;
}

.coin.btc {
  background: linear-gradient(145deg, #ffd07a, #ffac37);
}

.coin.btc::before {
  content: "₿";
}

.coin.eos {
  background: linear-gradient(145deg, #576078, #252a3a);
}

.coin.eos::before {
  content: "△";
}

.coin.usdt {
  background: linear-gradient(145deg, #8be3dd, #36b4bd);
}

.coin.usdt::before {
  content: "₮";
}

.coin.bkq {
  background: linear-gradient(145deg, #8fcaff, #2789ef);
}

.coin.bkq::before {
  content: "Q";
}

.coin.poly {
  background: #252936;
}

.coin.poly::before {
  content: "∞";
}

.investment-main {
  display: grid;
  gap: 10px;
}

.card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card-row h2,
.asset-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.card-row strong,
.asset-card > strong {
  font-size: 28px;
  font-weight: 500;
}

em {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  color: #707687;
  background: #f0f2f6;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  vertical-align: middle;
}

.metric-strip,
.asset-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 5px;
  background: #f1f3f7;
  color: #707687;
  font-size: 16px;
  font-weight: 800;
}

.metric-strip b,
.asset-strip b {
  color: var(--blue);
  text-align: right;
}

.asset-card {
  grid-template-columns: 58px 1fr auto;
}

.asset-card > div {
  display: grid;
  gap: 10px;
}

.search-panel {
  padding: 8px;
  margin-bottom: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 0 10px;
}

.tabs button {
  height: 42px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 800;
}

.search-box {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(229, 232, 239, 0.65);
}

.magnify {
  width: 20px;
  height: 20px;
  border: 4px solid var(--blue);
  border-radius: 50%;
  position: relative;
}

.magnify::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 4px;
  background: var(--blue);
  right: -11px;
  bottom: -7px;
  transform: rotate(45deg);
  border-radius: 3px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #333842;
  font-size: 20px;
  background: transparent;
}

.search-box input::placeholder {
  color: #a0a4ad;
}

.info-card {
  padding: 16px 8px 8px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.coin-price-row {
  display: grid;
  grid-template-columns: 50px 64px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px 16px;
}

.coin-price-row h2 {
  margin: 0;
  font-size: 26px;
}

.coin-price-row strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
}

.coin-price-row b {
  display: block;
  font-size: 16px;
}

.network-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 5px;
  background: #f1f5fb;
  font-size: 19px;
  font-weight: 800;
}

.network-row .bar {
  height: 10px;
  border-radius: 999px;
  background: #d8d8d8;
  overflow: hidden;
}

.network-row .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #69adff;
}

.network-row.warning .bar i {
  background: #ffb732;
}

.network-row.danger .bar i {
  background: #ff5d68;
}

.network-row em {
  padding: 8px 14px;
  color: #29303c;
  background: #dce8ff;
  font-size: 18px;
}

.network-row.warning em {
  background: #ffda88;
}

.network-row.danger em {
  background: #ffb4b9;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 8px;
}

.mini-grid p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 5px;
  background: #f1f5fb;
  font-size: 18px;
  font-weight: 800;
}

.mini-grid b {
  color: var(--blue);
  font-size: 24px;
  font-weight: 500;
}

.chart-tabs {
  height: 34px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  margin: 8px 4px 0;
  border-radius: 3px;
  background: #e9f0f6;
  color: #888;
  text-align: center;
  font-size: 16px;
}

.chart-tabs b {
  height: 28px;
  display: grid;
  place-items: center;
  margin: 3px;
  border-radius: 3px;
  color: var(--blue);
  background: #fff;
}

.chart {
  position: relative;
  display: block;
  width: 100%;
  height: 184px;
  overflow: hidden;
  margin-top: 6px;
}

.chart.large {
  height: 245px;
}

.chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 56px, rgba(100, 128, 150, 0.15) 57px 58px);
}

.chart svg {
  position: absolute;
  inset: 22px 0 20px;
  width: 100%;
  height: calc(100% - 42px);
}

.chart .line {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 5px 5px rgba(28, 57, 115, 0.28));
}

#screen-ethInfo .chart .line {
  stroke: #213188;
}

.tooltip {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 9px 34px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 35, 43, 0.18);
  font-size: 22px;
  font-weight: 800;
}

.tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
}

.coin-heading {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 14px;
}

.coin-heading h2 {
  margin: 0;
  font-size: 26px;
}

.coin-heading strong {
  grid-column: 3;
  grid-row: 1;
  font-size: 36px;
  font-weight: 500;
}

.coin-heading b {
  grid-column: 3;
  grid-row: 2;
  font-size: 17px;
}

.crypto-detail-card,
.blocks-card,
.form-card {
  padding: 12px;
}

.blocks-card {
  margin-top: 12px;
}

.blocks-card h2 {
  margin: 10px 6px 18px;
  font-size: 26px;
  font-weight: 500;
}

.block-row,
.activity-row,
.history-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.block-row {
  grid-template-columns: 54px 1fr 1.35fr auto;
  padding: 13px 8px;
}

.block-row:nth-child(even),
.activity-row:nth-child(even) {
  background: #f0f3f9;
}

.block-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #328ff5;
  clip-path: polygon(25% 3%, 75% 3%, 100% 28%, 100% 72%, 75% 97%, 25% 97%, 0 72%, 0 28%);
  box-shadow: 0 0 0 5px #252936 inset;
  font-size: 13px;
  font-weight: 800;
}

.block-row b,
.block-row a,
.block-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}

.block-row p {
  margin: 4px 0 0;
  font-size: 14px;
}

.block-row strong {
  padding: 7px 10px;
  border-radius: 3px;
  color: #fff;
  background: #2d303c;
  font-size: 18px;
  white-space: nowrap;
}

.wallet-summary {
  display: block;
}

.wallet-number {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  overflow: hidden;
}

.balance-split button {
  min-height: 74px;
  display: grid;
  gap: 6px;
  padding: 12px 22px;
  text-align: left;
  position: relative;
}

.balance-split button + button {
  border-left: 2px solid #7a8091;
}

.balance-split span {
  color: #7a8091;
  font-size: 18px;
  font-weight: 700;
}

.balance-split b {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.balance-split .chevron-right {
  position: absolute;
  right: 18px;
  top: 33px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px 12px 22px;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 14px;
}

.history-head h2 {
  margin: 0;
  font-size: 24px;
}

.hamburger {
  width: 32px;
  height: 24px;
  border-top: 4px solid #1f222b;
  border-bottom: 4px solid #1f222b;
  position: relative;
}

.hamburger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 26px;
  height: 4px;
  background: #1f222b;
  border-radius: 999px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  grid-template-columns: 38px 1fr auto;
  min-height: 78px;
  padding: 13px 12px;
  background: #f0f3f9;
  border-radius: 6px;
}

.history-row:nth-child(odd) {
  background: #f6f7f9;
}

.history-row .status {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  position: relative;
}

.history-row .status img {
  width: 32px;
  height: 32px;
  display: block;
}

.history-row h3 {
  margin: 0;
  font-size: 22px;
}

.history-row p {
  margin: 5px 0 0;
  color: #707687;
  font-size: 15px;
  font-weight: 700;
}

.history-row strong {
  color: #28aaf6;
  font-size: 28px;
}

.history-row.out strong {
  color: var(--red);
}

.history-row.fail strong {
  color: #697080;
}

.form-card {
  position: relative;
  margin: 8px;
  padding: 18px 12px 22px;
  border-top: 7px solid #0099FF;
}

.form-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.plan-options {
  display: grid;
  gap: 5px;
}

.plan-options button {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr 1fr;
  gap: 2px 12px;
  padding: 12px;
  border-radius: 5px;
  background: #f1f3f7;
  text-align: left;
  border: 2px solid transparent;
}

.plan-options .selected {
  background: #f9fbff;
  border-color: var(--blue);
}

.plan-options span {
  grid-row: 1 / 3;
  font-size: 24px;
  font-weight: 800;
}

.plan-options small {
  display: block;
  margin-top: 8px;
  color: #707687;
  font-size: 15px;
}

.plan-options b {
  color: var(--blue);
  font-size: 30px;
  text-align: right;
}

.plan-options em {
  padding: 0;
  color: #707687;
  background: transparent;
  font-size: 15px;
  text-align: right;
}

hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #90949c;
}

.amount-field {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 5px;
  background: #f1f3f9;
}

.amount-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

.amount-field button,
.available b,
.yield-row b {
  color: var(--blue);
  font-weight: 800;
}

.available {
  margin: 10px 8px 28px;
  color: #707687;
  font-size: 18px;
  font-weight: 800;
}

.yield-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.yield-row h3 {
  margin: 0;
  font-size: 22px;
}

.yield-row span {
  display: block;
  margin-top: 7px;
  color: #707687;
  font-weight: 800;
}

.yield-row b {
  font-size: 23px;
}

.note {
  margin: 0;
  color: #707687;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 800;
}

.fixed-confirm {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 26px;
  width: auto;
  height: 68px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  font-weight: 900;
  z-index: 4;
}

#screen-addInvestment {
  padding-bottom: 118px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  padding-top: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 22px rgba(28, 35, 48, 0.1);
  z-index: 10;
}

.bottom-nav::after,
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 155px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #1e2028;
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #303441;
  font-size: 16px;
  font-weight: 800;
}

.bottom-nav .active {
  color: var(--blue);
}

.nav-icon {
  width: 32px;
  height: 28px;
  position: relative;
  display: block;
  color: currentColor;
}

.nav-icon.wallet {
  border: 3px solid currentColor;
  border-radius: 2px;
}

.nav-icon.wallet::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 9px;
  width: 13px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 2px;
  background: #fff;
}

.nav-icon.search {
  width: 28px;
  height: 28px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.nav-icon.search::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -6px;
  width: 14px;
  height: 4px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 999px;
}

.nav-icon.chart {
  background: linear-gradient(90deg, transparent 0 15%, currentColor 15% 27%, transparent 27% 39%, currentColor 39% 51%, transparent 51% 63%, currentColor 63% 75%, transparent 75%);
  border-bottom: 3px solid currentColor;
}

.nav-icon.account {
  border: 4px solid currentColor;
  border-radius: 50%;
}

.nav-icon.account::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 6px;
  width: 13px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 8px 0 currentColor;
}

.activity-popup {
  position: absolute;
  inset: 124px 8px 86px;
  z-index: 20;
}

.popup-card {
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 35, 43, 0.26);
  border-top: 10px solid #2d3038;
}

.popup-close {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.activity-row {
  grid-template-columns: 58px 1fr auto;
  min-height: 66px;
  padding: 10px 16px;
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #2d3038;
  font-weight: 900;
}

.activity-row h3 {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
}

.activity-row.price h3 {
  color: var(--orange);
}

.activity-row p {
  margin: 5px 0 0;
  color: #92959c;
  font-size: 15px;
}

.activity-row strong {
  font-size: 20px;
  font-weight: 800;
}

.sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78%;
  padding: 22px 15px 32px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  animation: sheetIn 260ms ease-out;
}

@keyframes sheetIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sheet-panel header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  margin-bottom: 24px;
}

.sheet-panel header h2 {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 26px;
}

.sheet-panel header button {
  grid-column: 3;
  color: #303441;
  font-size: 44px;
  line-height: 1;
}

.sheet-search {
  height: 58px;
  background: #f2f5fb;
  box-shadow: none;
}

.sheet-panel h3 {
  margin: 28px 8px 16px;
  font-size: 24px;
}

.recent-coins {
  display: flex;
  gap: 12px;
  padding: 0 8px;
}

.recent-coins button {
  min-width: 62px;
  height: 38px;
  border-radius: 5px;
  color: #707687;
  background: #e8edf7;
  font-size: 20px;
}

.coin-list {
  display: grid;
  gap: 22px;
  padding: 14px 0 0;
}

.coin-row {
  display: grid;
  grid-template-columns: 52px 72px max-content;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.coin-row b {
  color: #73798a;
  font-size: 23px;
}

.coin-row em {
  font-size: 15px;
  min-width: 0;
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .fixed-confirm {
    bottom: 25px;
  }
}

/* iOS visual system pass */
:root {
  --blue: #007aff;
  --blue-dark: #0a58ca;
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --tertiary: #8e8e93;
  --line: rgba(60, 60, 67, 0.16);
  --panel: #ffffff;
  --soft: #f2f2f7;
  --soft-blue: rgba(0, 122, 255, 0.12);
  --red: #ff3b30;
  --green: #34c759;
  --orange: #ff9500;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 24px rgba(0, 0, 0, 0.06);
}

body {
  background: #e5e5ea;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active {
  transform: scale(0.985);
}

.phone {
  background: var(--soft);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.status-bar,
.app-header {
  background: rgba(248, 248, 248, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.status-bar {
  height: 50px;
  padding: 14px 32px 0;
  font-size: 17px;
  font-weight: 700;
}

.app-header {
  height: 52px;
  grid-template-columns: 52px 1fr 52px;
  border-bottom: 0.5px solid var(--line);
}

.app-header h1 {
  font-size: 17px;
  font-weight: 600;
}

.icon-btn {
  width: 44px;
  height: 44px;
  color: var(--blue);
}

.chevron-left,
.chevron-right {
  width: 14px;
  height: 14px;
  border-left-width: 3px;
  border-bottom-width: 3px;
  border-color: currentColor;
}

.bell {
  width: 22px;
  height: 24px;
  border-width: 2.5px;
  border-color: currentColor;
  border-radius: 13px 13px 9px 9px;
}

.bell::before,
.bell::after {
  background: currentColor;
}

.dot {
  top: 9px;
  right: 9px;
  background: var(--orange);
  box-shadow: 0 0 0 2px rgba(248, 248, 248, 0.9);
}

.app-scroll {
  height: calc(100% - 50px - 52px - 83px);
  background: var(--soft);
}

.phone.detail-mode .app-scroll {
  height: calc(100% - 50px - 52px);
}

.screen {
  padding: 14px 16px 28px;
}

.lift,
.summary-card,
.investment-card,
.asset-card,
.info-card,
.crypto-detail-card,
.blocks-card,
.form-card,
.balance-split {
  border-radius: 16px;
  box-shadow: none;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.summary-card {
  padding: 18px;
  gap: 12px;
}

.summary-card .muted,
.convert,
.available,
.note,
.yield-row span {
  color: var(--muted);
}

.summary-card .muted {
  font-size: 15px;
  font-weight: 500;
}

.big-number {
  margin-top: 6px;
  font-size: clamp(42px, 10vw, 54px);
  line-height: 1;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.fixed-confirm {
  min-height: 50px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
}

.primary-btn {
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.2);
}

.secondary-btn {
  background: rgba(118, 118, 128, 0.12);
  color: var(--ink);
}

.loss-strip {
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.1);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.quick-actions {
  padding: 26px 6px 24px;
}

.quick-actions button {
  min-height: 72px;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.action-icon::before,
.action-icon::after {
  background: var(--blue);
}

.segment,
.tabs,
.chart-tabs {
  padding: 2px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
  font-size: 15px;
  font-weight: 600;
}

.segment {
  gap: 2px;
  margin-bottom: 12px;
}

.segment button,
.tabs button {
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.segment .active,
.tabs .active,
.chart-tabs b {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.list-stack {
  gap: 10px;
}

.investment-card,
.asset-card {
  min-height: 104px;
  padding: 14px;
  gap: 12px;
  background: #fff;
  transition: transform 140ms ease, background 140ms ease;
}

.investment-card:active,
.asset-card:active,
.coin-row:active,
.quick-actions button:active {
  background: rgba(255, 255, 255, 0.72);
}

.coin {
  width: 42px;
  height: 42px;
  font-size: 19px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.34);
}

.card-row h2,
.asset-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.card-row strong,
.asset-card > strong {
  font-size: 24px;
  font-weight: 600;
}

em {
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(118, 118, 128, 0.12);
  font-size: 13px;
  font-weight: 600;
}

.metric-strip,
.asset-strip,
.mini-grid p {
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.08);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.search-panel {
  padding: 10px;
}

.search-box {
  height: 44px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.12);
  box-shadow: none;
}

.search-box input {
  font-size: 17px;
}

.magnify {
  width: 16px;
  height: 16px;
  border-width: 2.5px;
  border-color: var(--tertiary);
}

.magnify::after {
  width: 8px;
  height: 2.5px;
  right: -7px;
  bottom: -5px;
  background: var(--tertiary);
}

.info-card {
  padding: 14px;
}

.coin-price-row {
  grid-template-columns: 46px 58px 1fr;
  padding: 0 0 14px;
}

.coin-price-row h2 {
  font-size: 22px;
  font-weight: 700;
}

.coin-price-row strong {
  font-size: 32px;
  font-weight: 600;
}

.network-row {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.08);
  font-size: 15px;
  font-weight: 600;
}

.network-row .bar {
  height: 8px;
}

.network-row em {
  padding: 6px 11px;
  border-radius: 9px;
  color: var(--blue);
  background: rgba(0, 122, 255, 0.12);
  font-size: 15px;
}

.mini-grid {
  gap: 8px;
}

.mini-grid b {
  font-size: 20px;
  font-weight: 600;
}

.chart-tabs {
  height: 36px;
  margin: 10px 0 0;
}

.chart-tabs b {
  height: 28px;
  margin: 2px;
  border-radius: 8px;
}

.chart {
  border-radius: 14px;
}

.tooltip {
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.coin-heading {
  padding: 4px 2px 14px;
}

.coin-heading h2 {
  font-size: 24px;
  font-weight: 700;
}

.coin-heading strong {
  font-size: 34px;
  font-weight: 600;
}

.blocks-card h2,
.history-head h2,
.form-card h2 {
  font-size: 22px;
  font-weight: 700;
}

.block-row,
.activity-row,
.history-row {
  border-radius: 0;
  border-bottom: 0.5px solid var(--line);
}

.block-row:nth-child(even),
.activity-row:nth-child(even),
.history-row,
.history-row:nth-child(odd) {
  background: #fff;
}

.block-row:last-child,
.activity-row:last-child,
.history-row:last-child {
  border-bottom: 0;
}

.block-row strong {
  border-radius: 9px;
  background: rgba(28, 28, 30, 0.92);
  font-size: 16px;
  font-weight: 600;
}

.balance-split {
  margin-top: 12px;
  background: #fff;
}

.balance-split button {
  min-height: 74px;
}

.balance-split button + button {
  border-left: 0.5px solid var(--line);
}

.balance-split span {
  font-size: 15px;
  font-weight: 500;
}

.balance-split b {
  font-size: 30px;
  font-weight: 700;
}

.wallet-actions {
  gap: 12px;
  padding: 18px 0 22px;
}

.history-head {
  padding: 0 4px 10px;
}

.hamburger {
  width: 44px;
  height: 44px;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: transparent;
}

.hamburger::before {
  display: none;
  content: none;
}

.hamburger img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.history-list {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.history-row {
  min-height: 72px;
  padding: 12px 14px;
}

.history-row h3 {
  font-size: 17px;
  font-weight: 600;
}

.history-row p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.history-row strong {
  font-size: 26px;
  font-weight: 700;
}

.form-card {
  margin: 0;
  padding: 18px 14px 22px;
  border-top: 0;
}

.plan-options {
  overflow: hidden;
  gap: 0;
  border-radius: 14px;
  background: #fff;
}

.plan-options button {
  min-height: 78px;
  border: 0;
  border-radius: 0;
  background: #fff;
  border-bottom: 0.5px solid var(--line);
}

.plan-options button:last-child {
  border-bottom: 0;
}

.plan-options .selected {
  position: relative;
  background: rgba(0, 122, 255, 0.08);
  border: 0;
}

.plan-options .selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.plan-options span {
  font-size: 20px;
  font-weight: 700;
}

.plan-options small,
.plan-options em {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.plan-options b {
  font-size: 28px;
  font-weight: 700;
}

.amount-field {
  height: 50px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.12);
}

.amount-field input {
  font-size: 20px;
  font-weight: 600;
}

.note {
  font-size: 15px;
  font-weight: 500;
}

.fixed-confirm {
  left: 16px;
  right: 16px;
  bottom: 26px;
  height: 56px;
  border-radius: 16px;
}

.bottom-nav {
  height: 83px;
  padding-top: 7px;
  background: rgba(248, 248, 248, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: none;
  border-top: 0.5px solid var(--line);
}

.bottom-nav button {
  min-height: 50px;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 500;
}

.bottom-nav .active {
  color: var(--blue);
}

.nav-icon {
  width: 28px;
  height: 26px;
}

.nav-icon.wallet,
.nav-icon.search,
.nav-icon.account {
  border-width: 2.5px;
}

.nav-icon.wallet::after {
  border-width: 2px;
}

.nav-icon.search::after,
.nav-icon.account::after {
  height: 2.5px;
}

.activity-popup {
  inset: 114px 16px 98px;
}

.popup-card {
  border-top: 0;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.activity-row {
  min-height: 64px;
  padding: 11px 14px;
}

.activity-icon {
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.12);
}

.activity-icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.activity-row.price .activity-icon {
  background: rgba(255, 159, 46, 0.12);
}

.activity-row h3,
.activity-row strong {
  font-size: 17px;
  font-weight: 600;
}

.sheet .scrim {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sheet-panel {
  height: 80%;
  padding: 12px 16px 32px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
}

.sheet-panel::before {
  content: "";
  display: block;
  width: 38px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.28);
}

.sheet-panel header {
  margin-bottom: 18px;
}

.sheet-panel header h2 {
  font-size: 20px;
  font-weight: 700;
}

.sheet-panel header button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
  font-size: 30px;
}

.sheet-panel h3 {
  margin: 24px 4px 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.recent-coins {
  gap: 8px;
  padding: 0 8px;
}

.recent-coins button {
  min-width: 56px;
  height: 36px;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(118, 118, 128, 0.12);
  font-size: 15px;
  font-weight: 500;
}

.coin-list {
  overflow: hidden;
  gap: 0;
  border-radius: 16px;
  background: #fff;
}

.coin-row {
  min-height: 58px;
  grid-template-columns: 48px 66px max-content;
  border-bottom: 0.5px solid var(--line);
}

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

.coin-row b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.coin-row em {
  color: var(--muted);
  background: rgba(118, 118, 128, 0.1);
  font-size: 13px;
}

.bottom-nav {
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 72px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 6px;
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 247, 250, 0.64)),
    rgba(248, 248, 248, 0.7);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.22);
}

.bottom-nav::after {
  display: none;
}

.bottom-nav button {
  position: relative;
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-rows: 28px 16px;
  place-items: center;
  gap: 3px;
  border-radius: 22px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.bottom-nav .nav-tab {
  grid-template-rows: 29px 16px;
  color: #6b7280;
}

.bottom-nav button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 19px;
  background: transparent;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease;
}

.bottom-nav button > * {
  position: relative;
  z-index: 1;
}

.bottom-nav .active {
  color: var(--blue);
}

.bottom-nav .active::before {
  opacity: 0;
  background: transparent;
}

.bottom-nav .nav-tab:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 2px;
}

.bottom-nav .active .nav-icon {
  filter: drop-shadow(0 4px 8px rgba(0, 122, 255, 0.24));
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.tab-icon {
  grid-area: 1 / 1;
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.tab-icon-active {
  opacity: 0;
  transform: scale(0.94);
}

.bottom-nav .active .tab-icon-normal {
  opacity: 0;
  transform: scale(0.94);
}

.bottom-nav .active .tab-icon-active {
  opacity: 1;
  transform: scale(1);
}

.nav-label {
  white-space: nowrap;
  letter-spacing: 0;
}

.phone:not(.detail-mode) .app-scroll {
  height: calc(100% - 50px - 52px - 92px);
  padding-bottom: 10px;
}

.phone:not(.detail-mode)::after {
  bottom: 2px;
  z-index: 12;
  width: 132px;
  height: 5px;
  background: rgba(28, 28, 30, 0.9);
}

.app-header {
  height: 56px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
}

.icon-btn:active {
  background: rgba(0, 122, 255, 0.1);
}

.heroicon {
  width: 27px;
  height: 27px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bell-btn .heroicon {
  width: 25px;
  height: 25px;
}

.bell-btn .dot {
  top: 9px;
  right: 8px;
}

.app-scroll {
  height: calc(100% - 56px - 83px);
}

.phone.detail-mode .app-scroll {
  height: calc(100% - 56px);
}

.phone:not(.detail-mode) .app-scroll {
  height: calc(100% - 56px - 92px);
}

.add-investment-btn {
  min-height: 48px;
  height: 48px;
  align-self: center;
}

.investment-list-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
}

.investment-list-icon img {
  width: 36px;
  height: 36px;
  display: block;
  pointer-events: none;
  user-select: none;
}

#plansList,
#assetsList {
  gap: 8px;
}

#plansList .investment-card,
#assetsList .asset-card {
  min-height: 90px;
  height: 90px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

#assetsList .asset-card {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

#plansList .investment-list-icon,
#assetsList .coin {
  width: 36px;
  height: 36px;
}

#assetsList .coin {
  font-size: 16px;
}

#assetsList .coin.eth::before {
  font-size: 20px;
}

#plansList .investment-main,
#assetsList .asset-card > div {
  gap: 7px;
  min-width: 0;
}

#plansList .card-row,
#assetsList .asset-card > div > h2 {
  min-height: 18px;
}

#plansList .card-row h2,
#assetsList .asset-card h2 {
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
}

#plansList .card-row strong,
#assetsList .asset-card > strong {
  align-self: start;
  padding-top: 0;
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
}

#plansList em,
#assetsList em {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
}

#plansList .metric-strip,
#assetsList .asset-strip {
  min-height: 38px;
  height: 38px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(238, 239, 244, 0.5);
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
}

#plansList .metric-strip b,
#assetsList .asset-strip b {
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
}

#assetsList .asset-strip .red,
#assetsList .asset-strip .green {
  font-size: 10px;
  font-weight: 500;
}

.balance-card {
  width: 100%;
  min-height: 125px;
  height: auto;
  max-height: none;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  padding: 16px 10px 10px 19px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
  overflow: visible;
}

.balance-card .muted {
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
}

.balance-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.balance-title-row .muted {
  margin: 0;
}

.balance-currency-select {
  position: relative;
  flex: 0 0 auto;
}

.balance-currency-select::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #64748b;
  border-bottom: 1.5px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.balance-currency-trigger {
  min-width: 78px;
  height: 30px;
  padding: 0 28px 0 12px;
  border: 1px solid #e2e8f0;
  outline: 0;
  background: #f8fafc;
  color: #475569;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.balance-currency-trigger:focus-visible,
.balance-currency-trigger[aria-expanded="true"] {
  border-color: #60a5fa;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.balance-currency-trigger[aria-expanded="true"] ~ .balance-currency-scrim {
  display: block !important;
}

.balance-currency-trigger[aria-expanded="true"] ~ .balance-currency-menu {
  display: grid !important;
}

.balance-currency-scrim {
  position: fixed;
  z-index: 39;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(2px);
}

.balance-currency-menu {
  position: fixed;
  z-index: 40;
  left: 50%;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 32px), 398px);
  gap: 4px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  animation: currencySheetIn 180ms ease-out;
}

.balance-currency-menu::before {
  content: "選擇幣別";
  padding: 6px 10px 8px;
  color: #0f172a;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

@keyframes currencySheetIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.balance-currency-menu button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-align: left;
}

.balance-currency-menu button.active,
.balance-currency-menu button:focus-visible {
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14);
  outline: 0;
}

.balance-currency-menu button.active::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid #3b82f6;
  border-bottom: 2px solid #3b82f6;
  transform: rotate(45deg);
}

.balance-value-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.balance-value-box {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.balance-card .big-number {
  margin-top: 12px;
  color: #4297ff;
  font-size: 30px;
  line-height: 34px;
  font-weight: 500;
}

.balance-card .convert {
  margin-top: 0 !important;
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
}

.balance-card .add-investment-btn {
  width: 80px;
  min-width: 80px;
  height: 36px;
  min-height: 36px;
  align-self: end;
  margin-top: 0;
  padding: 0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  box-shadow: none;
}

.balance-card .loss-strip {
  height: 21px;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 4px;
  background: #eeeff4;
  font-size: 12px;
  line-height: 13px;
  font-weight: 500;
}

.quick-actions .quick-action-btn {
  min-height: 84px;
  border-radius: 18px;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.quick-actions .quick-action-btn:hover {
  color: var(--blue);
  background: rgba(0, 122, 255, 0.06);
  transform: translateY(-3px);
}

.quick-actions .quick-action-btn:active {
  transform: translateY(-1px) scale(0.97);
}

.svg-action {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: transform 220ms ease, filter 220ms ease;
}

.svg-action::before,
.svg-action::after {
  display: none;
}

.svg-action img {
  width: 54px;
  height: 54px;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: transform 220ms ease;
}

.quick-action-btn:hover .svg-action {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 16px rgba(0, 122, 255, 0.2));
}

.quick-action-btn:hover .svg-action img {
  transform: scale(1.06);
}

.quick-action-btn:active .svg-action img {
  transform: scale(0.96);
}

.app-header {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
}

button:hover,
button:active,
.icon-btn:active,
.investment-card:active,
.asset-card:active,
.coin-row:active,
.quick-actions button:active,
.quick-actions .quick-action-btn:hover {
  background-color: transparent;
}

.quick-actions .quick-action-btn:hover {
  background: transparent;
}

.bottom-nav {
  height: 64px;
  padding: 4px 6px;
  align-items: stretch !important;
}

.bottom-nav button,
.bottom-nav .nav-tab {
  height: 56px !important;
  min-height: 0;
  max-height: 56px;
  grid-template-rows: 28px 14px;
  gap: 2px;
}

.bottom-nav button::before {
  inset: 0;
}

.nav-icon {
  width: 28px;
  height: 28px;
}

.nav-label {
  font-size: 10.5px;
}

.phone:not(.detail-mode) .app-scroll {
  height: calc(100% - 56px - 84px);
}

.app-header {
  height: var(--ios-topbar-height);
  min-height: var(--ios-topbar-height);
  max-height: var(--ios-topbar-height);
  grid-template-columns: var(--ios-topbar-height) 1fr var(--ios-topbar-height);
  padding: 0 8px;
  align-items: center;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  background: rgba(248, 248, 248, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.app-header h1 {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  color: #111113;
  letter-spacing: 0;
}

.icon-btn {
  width: var(--ios-topbar-height);
  height: var(--ios-topbar-height);
  min-width: var(--ios-topbar-height);
  border-radius: 999px;
}

.back-btn {
  justify-self: start;
}

.bell-btn {
  justify-self: end;
}

.heroicon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.bell-btn .heroicon {
  width: 23px;
  height: 23px;
}

.bell-btn .dot {
  top: 8px;
  right: 7px;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px rgba(248, 248, 248, 0.92);
}

.app-scroll {
  height: calc(100% - var(--ios-topbar-height) - 84px);
}

.phone.detail-mode .app-scroll {
  height: calc(100% - var(--ios-topbar-height));
}

.phone:not(.detail-mode) .app-scroll {
  height: calc(100% - var(--ios-topbar-height) - 84px);
}

.yield-row {
  display: grid;
  grid-template-columns: minmax(118px, auto) 1fr;
  align-items: start;
  gap: 14px;
}

.yield-row h3 {
  white-space: nowrap;
}

.account-screen,
.security-screen {
  padding: 16px 8px 28px;
  background: #fff;
}

.account-profile-card {
  height: 120px;
  padding: 8px 12px 10px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.13);
}

.account-profile-main {
  display: grid;
  grid-template-columns: 48px 1fr 60px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
}

.account-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  color: #fff;
  background: #333543;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18);
  font-size: 19px;
  font-weight: 700;
}

.account-identity h2 {
  margin: 0 0 6px;
  color: #333;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}

.account-identity p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f7282;
  font-size: 14px;
  line-height: 16px;
}

.account-identity b {
  color: #6f7282;
  font-weight: 600;
}

.copy-id-btn {
  position: relative;
  width: 18px;
  height: 18px;
}

.copy-id-btn::before,
.copy-id-btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.8px solid #6f7282;
  border-radius: 2px;
}

.copy-id-btn::before {
  top: 2px;
  left: 5px;
}

.copy-id-btn::after {
  top: 6px;
  left: 1px;
  background: #fff;
}

.vip-badge {
  justify-self: end;
  width: 60px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #333;
  background: #dbd0bc;
  font-size: 14px;
  font-weight: 600;
}

.reward-entry {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  display: grid;
  grid-template-columns: 24px 1fr 12px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 4px;
  color: #333;
  background: #eeeff4;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
}

.reward-icon {
  position: relative;
  width: 20px;
  height: 18px;
  border-radius: 3px;
  background: #333;
}

.reward-icon::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 4px;
  width: 22px;
  height: 3px;
  background: #fff;
  opacity: 0.9;
}

.reward-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 3px;
  height: 18px;
  background: #fff;
  opacity: 0.9;
}

.account-menu-list,
.settings-list.compact {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.account-menu-row,
.settings-row {
  width: 100%;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr auto 12px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 4px;
  color: #333;
  background: #f2f3f5;
  text-align: left;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
}

.account-menu-row:hover,
.account-menu-row:active,
.settings-row:hover,
.settings-row:active,
.reward-entry:hover,
.reward-entry:active {
  background: #f2f3f5;
}

.state-blue {
  color: #4297ff;
  font-size: 14px;
  font-weight: 600;
}

.state-orange {
  color: #e9983d;
  font-size: 14px;
  font-weight: 600;
}

.next-chevron {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-top: 2px solid #333543;
  border-right: 2px solid #333543;
  transform: rotate(45deg);
}

.account-menu-row > .next-chevron,
.settings-row > .next-chevron {
  grid-column: 3;
}

.security-screen .settings-list.compact {
  margin-top: 0;
}

.settings-section-title {
  margin: 24px 0 12px;
  color: #333;
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
}

.logout-btn {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border-radius: 4px;
  color: #333;
  background: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
}

.logout-btn:hover,
.logout-btn:active {
  background: #f2f3f5;
}

.bell-btn .notice-icon {
  width: 44px;
  height: 44px;
  display: block;
  pointer-events: none;
}

.activity-popup {
  position: absolute;
  top: var(--ios-topbar-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 28;
  padding: 10px 12px 0;
}

.activity-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.04);
}

.popup-card {
  position: relative;
  z-index: 1;
  max-height: min(430px, calc(100% - 14px));
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(20, 24, 32, 0.18);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.popup-close {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 36px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 12px;
  color: #6b7280;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  opacity: 1;
  pointer-events: auto;
}

.popup-close:hover,
.popup-close:active {
  background: rgba(255, 255, 255, 0.92);
}

.yield-row b {
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 21px;
  line-height: 1.25;
}

#screen-explore {
  padding: 0 7px 26px;
  background: transparent;
}

.explore-hero {
  position: relative;
  min-height: 156px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 -7px;
  padding: 22px 18px 26px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(66, 151, 255, 0.42), transparent 28%),
    radial-gradient(circle at 20% 120%, rgba(90, 217, 255, 0.2), transparent 38%),
    linear-gradient(135deg, #3b466a 0%, #29304d 100%);
}

.explore-hero::after {
  content: "";
  position: absolute;
  inset: auto -26px -72px 48px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-10deg);
}

.explore-logo {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.16);
}

.explore-logo span {
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 11px;
  transform: rotate(45deg);
}

.explore-logo i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4297ff;
  box-shadow: 17px 0 0 #fff, 8px 15px 0 rgba(255, 255, 255, 0.7);
}

.explore-hero > div:not(.explore-logo),
.explore-hero-btn {
  position: relative;
  z-index: 1;
}

.explore-hero p,
.explore-hero h2,
.explore-hero small {
  margin: 0;
}

.explore-hero p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.explore-hero h2 {
  margin-top: 3px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.explore-hero small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 16px;
}

.explore-hero-btn {
  width: 52px;
  height: 30px;
  border-radius: 15px;
  color: #fff;
  background: rgba(66, 151, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
}

.explore-dots {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: -4px;
}

.explore-dots span,
.explore-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: #8f97a6;
  transition:
    width 180ms ease,
    height 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.explore-dots .active,
.explore-dots button[aria-current="true"] {
  width: 8px;
  height: 8px;
  background: #118df0;
}

.explore-title-row {
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 10px 8px;
}

.explore-title-row h2 {
  margin: 0;
  color: #2a2b31;
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}

.explore-title-row button {
  color: #4297ff;
  font-size: 14px;
  line-height: 16px;
}

.explore-title-row.compact {
  margin-top: 4px;
  padding-right: 12px;
}

.explore-tools,
.explore-category-panel {
  width: 100%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 11px rgba(28, 35, 48, 0.12);
}

.explore-tools {
  height: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.explore-tool {
  height: 90px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #2a2b31;
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  transition: transform 180ms ease, color 180ms ease;
}

.explore-tool:hover {
  color: #4297ff;
  transform: translateY(-2px);
}

.tool-icon,
.app-icon {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 9px rgba(28, 35, 48, 0.14);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 18px;
}

.tool-rng,
.app-rng {
  background: linear-gradient(145deg, #4256ff, #893dff);
}

.tool-swap {
  background: linear-gradient(145deg, #34c7ff, #2f7dff);
}

.tool-market,
.app-binance {
  background: linear-gradient(145deg, #ffd569, #f5a900);
}

.tool-news,
.app-blockcast {
  background: linear-gradient(145deg, #222b45, #4297ff);
}

.explore-category-panel {
  height: 46px;
  margin-top: 10px;
  padding: 8px;
}

.explore-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.explore-tabs button {
  height: 30px;
  border-radius: 4px;
  color: #2a2b31;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
}

.explore-tabs .active {
  background: #e6ebf7;
}

.explore-app-list {
  display: grid;
  gap: 5px;
}

.explore-app-row {
  width: 100%;
  height: 52px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 11px rgba(28, 35, 48, 0.1);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.explore-app-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 35, 48, 0.12);
}

.explore-app-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.explore-app-row b {
  color: #333;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-app-row small {
  color: #4297ff;
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
}

.explore-app-row em {
  width: 72px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 4px;
  color: #333;
  background: #d4d4d4;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
}

.explore-app-row em.primary {
  color: #fff;
  background: #4297ff;
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}

.app-huobi {
  background:
    radial-gradient(circle at 54% 34%, #3c7ad2 0 24%, transparent 25%),
    radial-gradient(circle at 38% 60%, #d7e2f2 0 30%, transparent 31%),
    linear-gradient(145deg, #edf3ff, #dfe8f7);
}

.app-blockcast {
  border-radius: 9px;
}

.app-bkq {
  background: linear-gradient(145deg, #8fcaff, #2789ef);
}

.explore-app-row.is-hidden {
  display: none;
}

.explore-list-section.is-hidden {
  display: none;
}

#screen-info {
  padding: 12px 8px 24px;
}

#screen-info .search-panel {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.13);
}

#screen-info .tabs {
  height: 32px;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
}

#screen-info .tabs button {
  height: 32px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
}

#screen-info .search-box {
  height: 42px;
  margin-top: 10px;
  padding: 0 14px;
  gap: 13px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

#screen-info .magnify {
  width: 18px;
  height: 18px;
  border-width: 3px;
}

#screen-info .magnify::after {
  width: 10px;
  height: 3px;
  right: -9px;
  bottom: -5px;
}

#screen-info .search-box input {
  font-size: 16px;
  line-height: 18px;
}

#screen-info #infoCards {
  gap: 8px;
}

.info-token-card {
  width: 100%;
  min-height: 126px;
  display: block;
  padding: 10px 7px 8px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.13);
  text-align: left;
}

button.info-token-card {
  cursor: pointer;
}

.info-token-card .coin-price-row {
  display: grid;
  grid-template-columns: 40px 54px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 0 7px 8px;
}

.info-token-card .coin {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.info-token-card .coin.eth::before {
  font-size: 21px;
}

.info-token-card .coin-price-row h2 {
  margin: 0;
  font-size: 22px;
  line-height: 24px;
  font-weight: 500;
}

.info-token-card .coin-price-row strong {
  display: block;
  color: #2a2b31;
  font-size: 30px;
  line-height: 32px;
  font-weight: 500;
}

.info-token-card .coin-price-row b {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
}

.info-token-card .network-row {
  min-height: 34px;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f2f5fb;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
}

.info-token-card .network-row .bar {
  height: 10px;
}

.info-token-card .network-row em {
  min-width: 52px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
}

.info-token-card .mini-grid {
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 5px;
}

.info-token-card .mini-grid p {
  min-height: 34px;
  align-items: center;
  padding: 5px 7px;
  border-radius: 4px;
  background: #f2f5fb;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
}

.info-token-card .mini-grid b {
  color: #4297ff;
  font-size: 20px;
  line-height: 22px;
  font-weight: 500;
}

.info-token-card.eth {
  min-height: 118px;
}

.info-token-card:hover {
  transform: none;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.13);
}

.info-token-card:active {
  transform: none;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.13);
}

.chain-detail-screen {
  padding: 28px 9px 84px;
  background: #fff;
}

.chain-section-heading {
  margin: 0 0 30px 4px;
  color: #4297ff;
  font-size: 26px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.chain-info-card {
  padding: 18px 12px 20px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.13);
}

.block-detail-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 1.35fr);
  gap: 22px 18px;
  margin: 0;
  color: #2d3038;
}

.block-detail-grid dt,
.block-detail-grid dd {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
}

.block-detail-grid dt {
  font-weight: 600;
}

.block-detail-grid dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.block-detail-grid a {
  color: #4297ff;
  text-decoration: none;
  font-weight: 600;
}

.chain-bottom-btn {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border-radius: 3px;
  color: #fff;
  background: rgba(66, 151, 255, 0.72);
  font-size: 18px;
  line-height: 20px;
  font-weight: 600;
}

.tx-heading {
  height: 56px;
  display: flex;
  align-items: center;
  margin: -10px -9px 0;
  padding-left: 10px;
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
}

.tx-list-card {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.13);
}

.tx-table-head,
.tx-row {
  display: grid;
  grid-template-columns: 44px 72px 20px 72px 60px 1fr;
  align-items: center;
}

.tx-table-head {
  height: 32px;
  background: #f6f6f6;
  color: #2a2b31;
  font-size: 10px;
  line-height: 10px;
  font-weight: 500;
  text-align: center;
}

.tx-table-head span:nth-child(2) {
  grid-column: 2;
}

.tx-table-head span:nth-child(3) {
  grid-column: 4;
}

.tx-table-head span:nth-child(4) {
  grid-column: 5;
}

.tx-table-head span:nth-child(5) {
  grid-column: 6;
}

.tx-row {
  width: 100%;
  height: 40px;
  padding: 0 0 0 10px;
  background: #fff;
  color: #2a2b31;
  text-align: left;
}

.tx-row.muted-row {
  background: #f2f5fb;
}

.tx-status {
  width: 38px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #8cd091;
  color: #2a2b31;
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
}

.tx-row b {
  color: #4297ff;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  text-align: center;
}

.tx-row i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #2a2b31;
  position: relative;
}

.tx-row i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #4297ff;
  border-bottom: 2px solid #4297ff;
  transform: rotate(-45deg);
}

.tx-row small,
.tx-row strong {
  color: #2a2b31;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  text-align: center;
}

.tx-row strong {
  padding-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#screen-blockInfo .chain-bottom-btn:hover,
#screen-blockInfo .chain-bottom-btn:active,
.tx-row:hover,
.tx-row:active {
  background-color: inherit;
}

#screen-invest .segment {
  width: 100%;
  gap: 6px;
  margin: 2px 0 14px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.1);
}

#screen-invest .segment button {
  min-height: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4a4f5d;
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
}

#screen-invest .segment .active {
  color: #1f2633;
  background: #fff;
  box-shadow: 0 2px 8px rgba(28, 35, 48, 0.12);
}

/* Unified layout and type rhythm */
:root {
  --page-x: 10px;
  --page-y: 14px;
  --stack-gap: 12px;
  --card-radius: 8px;
  --row-radius: 6px;
  --control-radius: 6px;
  --text-page-title: 17px;
  --text-section-title: 17px;
  --text-card-title: 16px;
  --text-body: 13px;
  --text-caption: 11px;
  --text-value: 24px;
  --text-value-lg: 32px;
}

.screen,
#screen-explore,
#screen-info,
#screen-invest,
.account-screen,
.security-screen {
  padding: var(--page-y) var(--page-x) 28px;
}

#screen-blockInfo,
#screen-txInfo {
  padding: 24px var(--page-x) 84px;
}

.summary-card,
.balance-card,
.search-panel,
.info-token-card,
.crypto-detail-card,
.blocks-card,
.form-card,
.chain-info-card,
.tx-list-card,
.account-profile-card,
.explore-hero,
.explore-tools,
.explore-category-panel,
.history-list,
.plan-options {
  border-radius: var(--card-radius);
}

.investment-card,
.asset-card,
.quick-action-btn,
.account-menu-row,
.settings-row,
.reward-entry,
.network-row,
.metric-strip,
.asset-strip,
.loss-strip,
.chart-tabs,
.amount-field,
.logout-btn,
.explore-tabs button,
.explore-app-row,
.recent-coins button {
  border-radius: var(--row-radius);
}

.primary-btn,
.add-investment-btn,
.fixed-confirm,
.wallet-actions .primary-btn,
.wallet-actions .secondary-btn {
  border-radius: var(--control-radius);
}

.list-stack,
.history-list,
.account-menu-list,
.settings-list.compact,
.explore-app-list,
.plan-options {
  gap: 6px;
}

.summary-card,
.balance-card,
.crypto-detail-card,
.blocks-card,
.form-card,
.chain-info-card,
.account-profile-card,
.explore-category-panel {
  padding-left: 14px;
  padding-right: 14px;
}

.app-header h1 {
  font-size: var(--text-page-title);
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.blocks-card h2,
.history-head h2,
.form-card h2,
.settings-section-title,
.explore-title-row h2 {
  font-size: var(--text-section-title);
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.card-row h2,
.asset-card h2,
.coin-price-row h2,
.coin-heading h2,
.account-identity h2,
.activity-row h3,
.history-row h3,
.explore-app-row b,
.info-token-card .coin-price-row h2 {
  font-size: var(--text-card-title);
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.summary-card .muted,
.balance-card .muted,
.history-row p,
.activity-row p,
.explore-app-row small,
.account-identity p,
.metric-strip,
.asset-strip,
.available,
.note,
.info-token-card .network-row,
.info-token-card .mini-grid p,
.chain-detail-row,
.tx-row {
  font-size: var(--text-body);
  line-height: 18px;
  letter-spacing: 0;
}

.nav-label,
.explore-hero p,
.explore-hero small,
.asset-card h2 em,
.card-row h2 em,
.balance-card .loss-strip,
.info-token-card .coin-price-row b {
  font-size: var(--text-caption);
  line-height: 14px;
  letter-spacing: 0;
}

.card-row strong,
.asset-card > strong,
.history-row strong,
.mini-grid b,
.info-token-card .mini-grid b {
  font-size: var(--text-value);
  line-height: 28px;
  font-weight: 700;
}

.big-number,
.balance-card .big-number,
.coin-price-row strong,
.coin-heading strong,
.info-token-card .coin-price-row strong {
  font-size: var(--text-value-lg);
  line-height: 38px;
  font-weight: 600;
}

.info-token-card,
#plansList .investment-card,
#assetsList .asset-card {
  padding-left: 12px;
  padding-right: 12px;
}

.search-panel,
#screen-info .search-panel {
  padding: 10px;
}

.search-tabs,
#screen-info .search-tabs {
  gap: 6px;
}

.search-box,
#screen-info .search-box {
  height: 42px;
  padding: 0 14px;
  border-radius: var(--row-radius);
}

#screen-invest .segment {
  width: 100%;
  margin: 6px 0 14px;
  padding: 4px;
  border-radius: var(--card-radius);
}

#screen-invest .segment button {
  height: 38px;
  min-height: 38px;
  border-radius: var(--row-radius);
  font-size: 14px;
  line-height: 18px;
}

#screen-explore .explore-hero {
  margin: 0 0 var(--stack-gap);
  border-radius: var(--card-radius);
}

#screen-info .search-panel {
  border-radius: var(--card-radius);
}

#screen-info .search-panel .tabs,
#screen-info .search-panel .search-tabs {
  display: none;
}

#screen-info .search-box {
  margin-top: 0;
}

.balance-card .add-investment-btn {
  width: 80px;
  min-width: 80px;
  height: 48px;
  min-height: 48px;
  align-self: end;
  margin-top: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #4da0ff 0%, #007aff 100%);
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.balance-card .add-investment-btn:hover {
  background: linear-gradient(180deg, #63adff 0%, #0a84ff 100%);
  box-shadow: none;
  transform: translateY(-2px);
}

.balance-card .add-investment-btn:active {
  background: linear-gradient(180deg, #258cff 0%, #006fe6 100%);
  box-shadow: none;
  transform: translateY(0) scale(0.98);
}

.balance-card .add-investment-btn:focus-visible {
  outline: 0;
  box-shadow: none;
}

.phone.success-mode .app-header {
  display: none;
}

.phone.success-mode .app-scroll {
  height: 100%;
  background: #fff;
}

.phone.detail-mode.confirm-mode .app-scroll {
  height: calc(100% - var(--ios-topbar-height) - 96px);
}

#screen-addInvestment,
#screen-fixedDepositDetail {
  padding-bottom: 28px;
}

#confirmInvestment.fixed-confirm {
  z-index: 24;
  left: 16px;
  right: 16px;
  bottom: 26px;
  height: 64px;
  border-radius: 10px;
  color: #fff;
  background: #4297ff;
  font-size: 22px;
  line-height: 26px;
  font-weight: 900;
  opacity: 1;
}

#confirmInvestment.fixed-confirm:hover,
#confirmInvestment.fixed-confirm:active {
  background: #4297ff;
}

.investment-flow-card,
.fixed-detail-card {
  position: relative;
  padding-top: 28px;
  border-top: 7px solid #0099FF;
}

.investment-flow-card h2,
.amount-title-row h2 {
  margin: 0;
  color: #30333a;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.investment-flow-card .plan-options {
  margin-top: 14px;
  gap: 6px;
  overflow: visible;
  background: transparent;
}

.investment-flow-card .plan-options button {
  min-height: 62px;
  padding: 9px 14px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: #f2f3f5;
}

.investment-flow-card .plan-options .selected {
  border-color: #4297ff;
  background: #f9fbff;
}

.investment-flow-card .plan-options .selected::before {
  display: none;
}

.investment-flow-card .plan-options span {
  color: #30333a;
  font-size: 18px;
  line-height: 22px;
}

.investment-flow-card .plan-options small {
  margin-top: 4px;
  color: #747989;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.investment-flow-card .plan-options b {
  color: #4297ff;
  font-size: 24px;
  line-height: 28px;
}

.investment-flow-card .plan-options em {
  color: #747989;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.investment-flow-card hr {
  margin: 20px 0 16px;
}

.amount-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.auto-renew {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #747989;
  font-size: 15px;
  line-height: 18px;
  font-weight: 800;
}

.auto-renew input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #4297ff;
  position: relative;
}

.auto-renew input::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.investment-flow-card .amount-field {
  height: 58px;
  padding: 0 16px;
  border-radius: 6px;
  background: #f1f4fa;
}

.investment-flow-card .amount-field input {
  color: #30333a;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.investment-flow-card .amount-field button {
  color: #4297ff;
  font-size: 18px;
  font-weight: 800;
}

.investment-flow-card .available {
  margin: 10px 8px 24px;
  color: #747989;
  font-size: 16px;
  font-weight: 800;
}

.investment-flow-card .yield-row {
  align-items: start;
  margin: 0 0 22px;
}

.investment-flow-card .yield-row h3,
.fixed-detail-list dt,
.renew-row span {
  color: #30333a;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.investment-flow-card .yield-row b {
  color: #4297ff;
  font-size: 21px;
  line-height: 26px;
  white-space: nowrap;
}

.investment-flow-card .note,
.fixed-detail-card .note {
  color: #747989;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 800;
}

.date-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 18px 0 26px 28px;
}

.date-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #747989;
}

.date-timeline p {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.date-timeline p::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #747989;
}

.date-timeline span {
  color: #747989;
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
}

.date-timeline b {
  color: #30333a;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.fixed-detail-summary {
  padding: 20px 22px 14px;
}

.fixed-total-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.fixed-total-row .coin {
  flex: 0 0 auto;
}

.fixed-detail-summary .big-number {
  color: #4297ff;
  font-size: 39px;
  line-height: 44px;
  letter-spacing: 0;
}

.fixed-detail-summary .loss-strip {
  height: 28px;
  margin-top: 14px;
  color: #747989;
  font-size: 18px;
}

.fixed-detail-card {
  margin-top: 14px;
  min-height: 560px;
  padding: 24px 14px 28px;
}

.fixed-detail-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.fixed-detail-list div {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.fixed-detail-list dd {
  margin: 0;
  color: #4297ff;
  font-size: 21px;
  line-height: 26px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.progress-detail dd {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-detail dd b {
  color: #30333a;
  font-size: 15px;
  white-space: nowrap;
}

.deposit-progress {
  width: 150px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #333543;
}

.deposit-progress i {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: #4297ff;
}

.renew-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 28px;
}

.switch-on {
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: #d7dce6;
  transition:
    background-color 160ms ease,
    transform 140ms ease,
    box-shadow 160ms ease;
}

.switch-on i {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(27, 31, 42, 0.18);
  transform: translateX(0);
  transition: transform 180ms ease;
}

.switch-on[aria-pressed="true"] {
  background: #4297ff;
}

.switch-on[aria-pressed="true"] i {
  transform: translateX(20px);
}

.switch-on:hover {
  box-shadow: 0 0 0 3px rgba(66, 151, 255, 0.12);
}

.switch-on:active {
  transform: scale(0.96);
}

.switch-on:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(66, 151, 255, 0.24);
}

.renew-row .switch-on {
  background: #d7dce6;
}

.renew-row .switch-on[aria-pressed="true"] {
  background: #4297ff;
}

.success-screen {
  height: 100%;
  min-height: 100%;
  padding: 0 18px 28px;
  background: #fff;
}

.success-content {
  min-height: calc(100% - 116px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding-bottom: 60px;
}

.success-check {
  position: relative;
  width: 106px;
  height: 106px;
  border-radius: 999px;
  background: #69adff;
  box-shadow: 0 0 0 12px rgba(66, 151, 255, 0.35);
}

.success-check::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 32px;
  width: 43px;
  height: 24px;
  border-left: 9px solid #fff;
  border-bottom: 9px solid #fff;
  border-radius: 3px;
  transform: rotate(-45deg);
}

.success-content h2 {
  margin: 10px 0 -8px;
  color: #30333a;
  font-size: 28px;
  line-height: 34px;
  font-weight: 900;
}

.success-content strong {
  color: #30333a;
  font-size: 38px;
  line-height: 46px;
  font-weight: 900;
}

.exchange-success-screen .success-content p {
  max-width: 320px;
  margin: -12px auto 0;
  color: #737888;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
}

.exchange-success-screen .success-content strong {
  font-size: 32px;
  line-height: 40px;
}

.success-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 26px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  pointer-events: auto;
}

.success-actions button {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 900;
  pointer-events: auto;
  transition:
    background-color 160ms ease,
    transform 140ms ease,
    color 160ms ease;
}

.success-secondary {
  color: #747989;
  background: #eeeff4;
}

.success-primary {
  color: #fff;
  background: #4297ff;
}

.success-actions .success-secondary:hover,
.success-actions .success-secondary:active {
  color: #747989;
  background: #e7e9ef;
}

.success-actions .success-primary:hover,
.success-actions .success-primary:active {
  color: #fff;
  background: #2f8eff;
}

.success-actions .success-secondary:active,
.success-actions .success-primary:active {
  transform: scale(0.98);
}

.success-actions .success-secondary:focus-visible,
.success-actions .success-primary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(66, 151, 255, 0.18);
}

/* Balanced app-wide type scale */
:root {
  --text-page-title: 17px;
  --text-section-title: 17px;
  --text-card-title: 16px;
  --text-body: 14px;
  --text-caption: 12px;
  --text-value: 22px;
  --text-value-lg: 30px;
  --text-display: 32px;
  --topbar-icon-size: 46px;
  --topbar-back-icon-size: 24px;
  --auth-button-height: 52px;
  --auth-button-radius: 8px;
  --auth-button-primary: #4297ff;
  --auth-button-primary-pressed: #2f8eff;
  --auth-button-secondary: #eef1f7;
  --auth-button-secondary-pressed: #e5e9f1;
  --auth-button-text-muted: #6f7686;
}

.summary-card .muted,
.balance-card .muted,
.history-row p,
.activity-row p,
.explore-app-row small,
.account-identity p,
.metric-strip,
.asset-strip,
.available,
.note,
.info-token-card .network-row,
.info-token-card .mini-grid p,
.chain-detail-row,
.tx-row {
  font-size: var(--text-body);
  line-height: 19px;
}

.nav-label,
.explore-hero p,
.explore-hero small,
.asset-card h2 em,
.card-row h2 em,
.balance-card .loss-strip,
.info-token-card .coin-price-row b,
.metric-strip span,
.metric-strip b,
.asset-strip span,
.asset-strip b {
  font-size: var(--text-caption);
  line-height: 16px;
}

.card-row h2,
.asset-card h2,
.coin-price-row h2,
.coin-heading h2,
.account-identity h2,
.activity-row h3,
.history-row h3,
.explore-app-row b,
.info-token-card .coin-price-row h2 {
  font-size: var(--text-card-title);
  line-height: 21px;
}

.blocks-card h2,
.history-head h2,
.form-card h2,
.settings-section-title,
.explore-title-row h2,
.investment-flow-card h2,
.amount-title-row h2 {
  font-size: var(--text-section-title);
  line-height: 23px;
}

.card-row strong,
.asset-card > strong,
.history-row strong,
.mini-grid b,
.info-token-card .mini-grid b {
  font-size: var(--text-value);
  line-height: 27px;
}

.big-number,
.balance-card .big-number,
.coin-price-row strong,
.coin-heading strong,
.info-token-card .coin-price-row strong {
  font-size: var(--text-value-lg);
  line-height: 36px;
}

.fixed-detail-summary .big-number,
.success-content strong {
  font-size: var(--text-display);
  line-height: 40px;
}

.success-content h2 {
  font-size: 26px;
  line-height: 32px;
}

.success-actions button {
  font-size: 18px;
  line-height: 24px;
}

.investment-flow-card .plan-options span {
  font-size: 17px;
  line-height: 21px;
}

.investment-flow-card .plan-options small,
.investment-flow-card .plan-options em {
  font-size: 12px;
  line-height: 16px;
}

.investment-flow-card .plan-options b {
  font-size: 22px;
  line-height: 26px;
}

.investment-flow-card .available,
.auto-renew,
.investment-flow-card .note,
.fixed-detail-card .note {
  font-size: 14px;
  line-height: 20px;
}

.investment-flow-card .yield-row h3,
.fixed-detail-list dt,
.renew-row span {
  font-size: 16px;
  line-height: 22px;
}

.investment-flow-card .yield-row b,
.fixed-detail-list dd {
  font-size: 19px;
  line-height: 24px;
}

.date-timeline span,
.date-timeline b {
  font-size: 16px;
  line-height: 21px;
}

.fixed-detail-summary .loss-strip,
.fixed-detail-summary .loss-strip b {
  font-size: 16px;
  line-height: 22px;
}

.account-menu-row,
.settings-row,
.logout-btn {
  font-size: 14px;
  line-height: 18px;
}

#plansList .metric-strip,
#plansList .metric-strip span,
#plansList .metric-strip b,
#plansList .card-row h2 em,
#assetsList .asset-strip,
#assetsList .asset-strip span,
#assetsList .asset-strip b,
#assetsList .asset-card h2 em {
  font-size: 12px;
  line-height: 16px;
}

.account-screen {
  padding-bottom: 92px;
}

.account-screen .settings-section-title {
  margin: 18px 2px 10px;
  color: #2f3138;
}

.account-profile-card {
  height: auto;
  min-height: 0;
  padding: 14px;
  display: grid;
  gap: 12px;
  border-radius: var(--card-radius);
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.account-profile-main {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 48px;
}

.account-identity h2 {
  margin-bottom: 5px;
}

.account-identity p {
  flex-wrap: wrap;
  row-gap: 4px;
}

.vip-badge {
  width: auto;
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ede3ce;
  font-size: 12px;
  line-height: 16px;
}

.account-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.account-status-row span {
  min-width: 0;
  padding: 6px 7px;
  border-radius: var(--row-radius);
  background: #f1f4fb;
  color: #6f7282;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.reward-entry {
  height: 42px;
  margin-top: 0;
  font-size: 14px;
  line-height: 18px;
}

.account-summary-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-summary-item {
  min-height: 74px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border-radius: var(--card-radius);
  background: #f3f6fb;
}

.account-summary-item span {
  color: #737888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.account-summary-item b {
  color: #2f3138;
  font-size: 16px;
  line-height: 21px;
  font-weight: 800;
}

.state-red {
  color: #ff4f6d !important;
}

.account-menu-list {
  margin-top: 0;
  gap: 6px;
}

.account-menu-row,
.settings-row {
  min-height: 52px;
  height: auto;
  padding: 12px 14px;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  background: #f4f6fa;
}

.account-menu-row span,
.settings-row span {
  min-width: 0;
}

.account-menu-row b,
.settings-row b {
  color: #737888;
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.account-menu-row:hover,
.account-menu-row:active,
.settings-row:hover,
.settings-row:active,
.reward-entry:hover,
.reward-entry:active {
  background: #f4f6fa;
  transform: scale(0.99);
}

.app-header .icon-btn,
.app-header .heroicon {
  color: #2f3442;
  stroke: #2f3442;
}

.app-header .back-btn .heroicon {
  width: var(--topbar-back-icon-size);
  height: var(--topbar-back-icon-size);
  transform: translateX(-10px);
}

.bell-btn .notice-icon {
  width: var(--topbar-icon-size);
  height: var(--topbar-icon-size);
}

.app-header .heroicon path {
  stroke: currentColor;
}

.bell-btn {
  position: relative;
}

.bell-btn .notice-dot {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff9f0a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.bell-btn.has-unread .notice-dot {
  opacity: 1;
  transform: scale(1);
}

.bell-btn[aria-expanded="true"] .notice-icon {
  transform: scale(0.96);
}

.primary-btn,
.secondary-btn,
.fixed-confirm,
.success-primary,
.success-secondary,
.logout-btn,
.amount-field button {
  min-height: var(--auth-button-height);
  border-radius: var(--auth-button-radius);
  font-size: 16px;
  line-height: 22px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms ease,
    box-shadow 160ms ease;
}

.primary-btn,
.fixed-confirm,
.success-primary {
  color: #fff;
  background: var(--auth-button-primary);
}

.primary-btn:hover,
.fixed-confirm:hover,
.success-primary:hover {
  color: #fff;
  background: var(--auth-button-primary-pressed);
}

.secondary-btn,
.success-secondary,
.logout-btn {
  color: var(--auth-button-text-muted);
  background: var(--auth-button-secondary);
}

.secondary-btn:hover,
.success-secondary:hover,
.logout-btn:hover {
  color: var(--auth-button-text-muted);
  background: var(--auth-button-secondary-pressed);
}

.primary-btn:active,
.secondary-btn:active,
.fixed-confirm:active,
.success-primary:active,
.success-secondary:active,
.logout-btn:active,
.amount-field button:active {
  transform: scale(0.98);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.fixed-confirm:focus-visible,
.success-primary:focus-visible,
.success-secondary:focus-visible,
.logout-btn:focus-visible,
.amount-field button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(66, 151, 255, 0.2);
}

.balance-card .add-investment-btn {
  width: 80px;
  min-width: 80px;
  height: 48px;
  min-height: 48px;
  align-self: end;
  margin-top: 0;
  padding: 0;
  border-radius: var(--auth-button-radius);
  background: linear-gradient(180deg, #4da0ff 0%, #007aff 100%);
  box-shadow: none;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
}

.balance-card .add-investment-btn:hover {
  background: linear-gradient(180deg, #63adff 0%, #0a84ff 100%);
  box-shadow: none;
}

.balance-card .add-investment-btn:active {
  background: linear-gradient(180deg, #258cff 0%, #006fe6 100%);
  box-shadow: none;
}

#confirmInvestment.fixed-confirm,
.success-actions button {
  height: 56px;
  min-height: 56px;
  border-radius: var(--auth-button-radius);
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.wallet-actions .primary-btn,
.wallet-actions .secondary-btn {
  height: 48px;
  min-height: 48px;
}

.wallet-actions .secondary-btn {
  background: #e3e8f1;
}

.wallet-actions .secondary-btn:hover {
  background: #e3e8f1;
}

.wallet-actions .secondary-btn:active {
  background: #d9e0ea;
}

.amount-field button {
  min-height: 0;
  height: 36px;
  padding: 0 14px;
  color: var(--auth-button-primary);
  background: transparent;
}

.auto-renew {
  min-height: 32px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms ease;
}

.auto-renew:hover {
  color: #3b4250;
  background: rgba(66, 151, 255, 0.08);
}

.auto-renew:active {
  transform: scale(0.98);
}

.auto-renew input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid #c9d1df;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 140ms ease;
}

.auto-renew input::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(0.72);
  transform-origin: center;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.auto-renew input:checked {
  border-color: var(--auth-button-primary);
  background: var(--auth-button-primary);
}

.auto-renew input:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.auto-renew input:hover {
  border-color: var(--auth-button-primary);
}

.auto-renew input:active {
  transform: scale(0.92);
}

.auto-renew input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(66, 151, 255, 0.22);
}

.auto-renew input:disabled {
  border-color: #d8dde7;
  background: #eef1f7;
  cursor: not-allowed;
}

.auto-renew input:disabled + span {
  color: #a6adba;
}

.investment-flow-card .amount-field {
  display: flex;
  align-items: center;
  width: 100%;
  padding-right: 12px;
}

.investment-flow-card .amount-field input {
  flex: 1 1 auto;
  min-width: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.investment-flow-card .amount-field input::-webkit-outer-spin-button,
.investment-flow-card .amount-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.investment-flow-card .amount-field button {
  flex: 0 0 auto;
  margin-left: auto;
  padding-right: 0;
  text-align: right;
}

.investment-confirm-modal {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.investment-confirm-modal.hidden {
  display: none !important;
}

.investment-confirm-scrim {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 31, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.investment-confirm-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100% - 48px);
  overflow-y: auto;
  padding: 20px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(27, 31, 42, 0.18);
}

.investment-confirm-card h2 {
  margin: 0 0 6px;
  color: #2f3138;
  font-size: 19px;
  line-height: 25px;
  font-weight: 900;
  text-align: center;
}

.investment-confirm-card > p {
  margin: 0 0 16px;
  color: #737888;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.investment-confirm-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #e8ecf3;
}

.investment-confirm-list div {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: #f6f8fb;
}

.investment-confirm-list dt {
  color: #737888;
  font-size: 13px;
  line-height: 17px;
  font-weight: 800;
}

.investment-confirm-list dd {
  margin: 0;
  color: #2f3138;
  font-size: 14px;
  line-height: 19px;
  font-weight: 900;
  text-align: right;
  word-break: break-word;
}

.investment-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.investment-confirm-actions button {
  height: 52px;
  min-height: 52px;
  border-radius: var(--auth-button-radius);
  font-size: 16px;
  line-height: 22px;
  font-weight: 900;
}

.redeem-action-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.redeem-btn {
  width: 100%;
  height: 44px;
  border-radius: var(--auth-button-radius);
  color: #ff4d67;
  font-size: 15px;
  line-height: 20px;
  font-weight: 900;
  background: #fff1f4;
  box-shadow: none;
}

.redeem-btn:hover,
.redeem-btn:active {
  background: #fff1f4;
  transform: none;
}

.redeem-action-panel p {
  margin: 0;
  color: #8a909e;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.redeem-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ff4d67;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
  background: #fff1f4;
}

.redeem-confirm-modal {
  position: fixed;
  inset: 0;
  align-items: flex-end;
  padding: 0 16px var(--floating-sheet-bottom);
}

.redeem-confirm-modal .investment-confirm-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.redeem-confirm-modal .investment-confirm-card {
  width: min(calc(100vw - 32px), 398px);
  max-height: calc(100vh - var(--floating-sheet-bottom) - 24px);
  padding: 10px 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.redeem-confirm-modal .investment-confirm-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.32);
}

.redeem-confirm-modal .investment-confirm-card h2 {
  font-size: 15px;
  line-height: 20px;
}

.redeem-confirm-modal .investment-confirm-card > p {
  margin-bottom: 12px;
}

.danger-primary {
  background: #ff4d67 !important;
}

.danger-primary:hover,
.danger-primary:active {
  background: #ff4d67 !important;
  transform: none;
}

.redeem-success-screen .success-content p {
  max-width: 280px;
  margin: 12px auto 0;
  color: #727888;
  font-size: 14px;
  line-height: 21px;
  font-weight: 800;
  text-align: center;
}

.success-screen.active {
  min-height: calc(100vh - 28px);
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 0 18px 28px;
}

.success-screen.active .success-content {
  min-height: 0;
  padding: 92px 0 36px;
}

.success-screen.active .success-actions {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}

.redeem-success-screen .success-content {
  gap: 16px;
}

.redeem-success-screen .success-content h2 {
  margin: 4px 0 -2px;
  font-size: 26px;
  line-height: 32px;
}

.redeem-success-screen .success-content strong {
  font-size: 32px;
  line-height: 40px;
}

#screen-ethInfo.active {
  display: grid !important;
  gap: 12px;
  padding: 12px;
  background: transparent;
}

#screen-ethInfo .crypto-detail-card,
#screen-ethInfo .blocks-card {
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.chain-token-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.chain-token-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chain-token-main .coin {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.chain-token-main p {
  margin: 0 0 2px;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.chain-token-main h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 750;
}

.chain-token-price {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.chain-token-price strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 30px;
  font-weight: 650;
}

.chain-token-price b {
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
}

.chain-status-card {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 10px;
  border-radius: var(--row-radius);
  background: var(--app-page-bg);
}

.chain-status-card div {
  display: grid;
  gap: 1px;
}

.chain-status-card span,
.chain-metric-grid span,
.chain-chart-head span {
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.chain-status-card div b {
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 850;
}

.chain-status-card .bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe3ea;
}

.chain-status-card .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0099ff;
}

.chain-status-card.warning .bar i {
  background: #ffb629;
}

.chain-status-card.danger .bar i {
  background: #ff5e66;
}

.chain-status-card em {
  color: #0099ff;
  font-size: 13px;
  line-height: 18px;
  font-style: normal;
  font-weight: 850;
}

.chain-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.chain-metric-grid p {
  min-height: 52px;
  display: grid;
  gap: 3px;
  align-content: center;
  margin: 0;
  padding: 9px 10px;
  border-radius: var(--row-radius);
  background: var(--app-page-bg);
}

.chain-metric-grid b {
  color: #0099ff;
  font-size: 18px;
  line-height: 24px;
  font-weight: 850;
}

.chain-chart-card {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--row-radius);
  background: var(--app-page-bg);
}

.chain-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.chain-chart-head b {
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 850;
}

.chart-tabs.compact {
  height: 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 6px;
  border-radius: 8px;
  background: #e9edf4;
}

.chart-tabs.compact span,
.chart-tabs.compact b,
.chart-tabs.compact button {
  height: 24px;
  margin: 3px;
  border-radius: 6px;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  background: transparent;
}

.chart-tabs.compact button {
  display: grid;
  place-items: center;
  padding: 0;
}

.chart-tabs.compact button.active {
  color: #0099ff;
  background: #fff;
}

.chart-tabs.compact button:hover,
.chart-tabs.compact button:active {
  background: transparent;
  transform: none;
}

.chart-tabs.compact button.active:hover,
.chart-tabs.compact button.active:active {
  background: #fff;
}

.chain-chart {
  height: 154px;
  margin-top: 0;
  border-radius: 8px;
  background: #fff;
}

.chain-chart svg {
  inset: 0;
  height: 100%;
}

.chain-chart .chain-grid-line {
  stroke: rgba(114, 120, 136, 0.16);
  stroke-width: 1;
}

.chain-chart .chain-grid-line.subtle {
  stroke: rgba(114, 120, 136, 0.1);
}

.chain-chart .line {
  stroke: url(#lineGradient);
  stroke-width: 3.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(0, 153, 255, 0.22));
}

.chain-chart .area {
  opacity: 1;
}

.chain-chart-dot {
  fill: #fff;
  stroke: #0099ff;
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(0, 153, 255, 0.28));
}

.chain-chart-label {
  fill: #8a909e;
  font-size: 10px;
  font-weight: 750;
}

#screen-ethInfo .blocks-card {
  margin-top: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#screen-ethInfo .blocks-card-head {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

#screen-ethInfo .blocks-card h2 {
  margin: 0;
  padding: 0 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 22px;
  font-weight: 750;
}

.blocks-filter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--control-radius);
  background: rgba(118, 118, 128, 0.1);
}

.blocks-filter button {
  height: 28px;
  min-width: 44px;
  padding: 0 8px;
  border-radius: 6px;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
  white-space: nowrap;
}

.blocks-filter button.active {
  color: #0099ff;
  background: #fff;
  box-shadow: 0 1px 4px rgba(28, 35, 48, 0.1);
}

.blocks-filter button:hover,
.blocks-filter button:active {
  background: transparent;
  transform: none;
}

.blocks-filter button.active:hover,
.blocks-filter button.active:active {
  background: #fff;
}

#screen-ethInfo #blocksList {
  display: grid;
  gap: 8px;
}

.chain-block-row {
  grid-template-columns: 44px minmax(76px, 0.82fr) minmax(0, 1.12fr) minmax(86px, auto);
  gap: 8px;
  min-height: 60px;
  padding: 8px 10px 8px 8px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  justify-items: start;
  align-items: center;
  text-align: left;
}

.chain-block-row:nth-child(even) {
  background: #fff;
}

.chain-block-row .block-icon-img {
  width: 44px;
  height: 44px;
  display: block;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  object-position: center;
}

.chain-block-row b {
  color: #0099ff;
  font-size: 13px;
  line-height: 17px;
  font-weight: 800;
}

.chain-block-row p,
.chain-block-row span {
  color: #727888;
  font-size: 11px;
  line-height: 15px;
  font-weight: 650;
}

.chain-block-row p {
  margin-top: 2px;
}

.chain-block-row strong {
  justify-self: start;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  text-align: left;
}

#screen-blockInfo.chain-detail-screen.active {
  display: grid !important;
  gap: 12px;
  padding: 12px;
  background: transparent;
}

.block-summary-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.block-summary-card img {
  width: 44px;
  height: 44px;
}

.block-summary-card p {
  margin: 0 0 2px;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.block-summary-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 30px;
  font-weight: 850;
}

.block-summary-card span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
  background: #e8f4ff;
}

#screen-blockInfo .chain-info-card {
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.chain-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chain-card-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 850;
}

.chain-card-title span {
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

#screen-blockInfo .block-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#screen-blockInfo .block-detail-grid div {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--row-radius);
  background: var(--app-page-bg);
}

#screen-blockInfo .block-detail-grid dt,
#screen-blockInfo .block-detail-grid dd {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0;
}

#screen-blockInfo .block-detail-grid dt {
  color: #727888;
  font-weight: 750;
}

#screen-blockInfo .block-detail-grid dd {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

#screen-blockInfo .block-detail-grid a {
  color: #0099ff;
  text-decoration: none;
  font-weight: 850;
}

#screen-blockInfo .chain-bottom-btn {
  height: 48px;
  margin-top: 0;
  border-radius: var(--control-radius);
  color: #fff;
  background: linear-gradient(180deg, #2dabff 0%, #0099ff 100%);
  font-size: 16px;
  line-height: 22px;
  font-weight: 900;
}

#screen-blockInfo .chain-bottom-btn:hover,
#screen-blockInfo .chain-bottom-btn:active {
  background: linear-gradient(180deg, #2dabff 0%, #0099ff 100%);
  transform: none;
}

#screen-txInfo.chain-detail-screen.active {
  display: grid !important;
  gap: 12px;
  padding: 12px;
  background: transparent;
}

.tx-summary-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.tx-summary-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e8f4ff;
}

.tx-summary-icon::before {
  content: "";
  width: 22px;
  height: 18px;
  border: 3px solid #0099ff;
  border-radius: 5px;
  box-shadow: 8px 8px 0 -5px #0099ff;
}

.tx-summary-card p {
  margin: 0 0 2px;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.tx-summary-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 30px;
  font-weight: 850;
}

.tx-summary-card > b {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
  background: #e8f4ff;
  white-space: nowrap;
}

#screen-txInfo .tx-list-card {
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.tx-list-stack {
  display: grid;
  gap: 8px;
}

#screen-txInfo .tx-row {
  width: 100%;
  min-height: 76px;
  height: auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "status addresses value"
    "status addresses age";
  align-items: center;
  gap: 6px 10px;
  padding: 10px;
  border-radius: var(--row-radius);
  color: var(--ink);
  background: var(--app-page-bg);
}

#screen-txInfo .tx-row:hover,
#screen-txInfo .tx-row:active {
  background: var(--app-page-bg);
  transform: none;
}

#screen-txInfo .tx-status {
  grid-area: status;
  width: 42px;
  height: 26px;
  border-radius: 999px;
  color: #12834a;
  background: #dcf8e8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
}

#screen-txInfo .tx-row.internal .tx-status {
  color: #006fc9;
  background: #e8f4ff;
}

.tx-addresses {
  grid-area: addresses;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.tx-addresses p {
  min-width: 0;
  display: grid;
  gap: 2px;
  margin: 0;
}

.tx-addresses span {
  color: #727888;
  font-size: 11px;
  line-height: 14px;
  font-weight: 750;
}

#screen-txInfo .tx-row b {
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-txInfo .tx-row i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
}

#screen-txInfo .tx-row i::before {
  width: 7px;
  height: 7px;
  border-right: 2px solid #0099ff;
  border-bottom: 2px solid #0099ff;
}

#screen-txInfo .tx-row small {
  grid-area: age;
  justify-self: end;
  color: #727888;
  font-size: 11px;
  line-height: 15px;
  font-weight: 750;
}

#screen-txInfo .tx-row strong {
  grid-area: value;
  justify-self: end;
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff;
  background: #333543;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.deposit-screen {
  display: none;
  gap: 12px;
}

.deposit-screen.active {
  display: grid;
}

.deposit-asset-card,
.deposit-network-card,
.deposit-address-card,
.deposit-info-card {
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.deposit-asset-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.deposit-asset-head h2 {
  margin: 2px 0 0;
  color: #2f3138;
  font-size: 18px;
  line-height: 24px;
  font-weight: 900;
}

.deposit-asset-head h2 em {
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f3f7;
  color: #737888;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 800;
}

.deposit-change-btn,
.deposit-copy-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--auth-button-radius);
  color: var(--auth-button-primary);
  background: #eef5ff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 900;
}

.deposit-network-card h2,
.deposit-address-card h2,
.deposit-info-card h2 {
  margin: 0 0 12px;
  color: #2f3138;
  font-size: 17px;
  line-height: 23px;
  font-weight: 900;
}

.deposit-network-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.deposit-network-options button {
  min-height: 54px;
  padding: 9px 10px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: var(--auth-button-radius);
  background: #f3f6fb;
  text-align: left;
}

.deposit-network-options button.active {
  border-color: rgba(66, 151, 255, 0.72);
  background: #eef5ff;
}

.deposit-network-options b {
  color: #2f3138;
  font-size: 15px;
  line-height: 19px;
  font-weight: 900;
}

.deposit-network-options span {
  color: #737888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.deposit-qr {
  width: 148px;
  height: 148px;
  margin: 8px auto 12px;
  display: grid;
  place-items: center;
  border: 10px solid #f1f5fb;
  border-radius: 18px;
  color: #2f3138;
  background:
    linear-gradient(90deg, #2f3138 12px, transparent 12px) 18px 18px / 34px 34px,
    linear-gradient(#2f3138 12px, transparent 12px) 18px 18px / 34px 34px,
    linear-gradient(90deg, transparent 12px, #2f3138 12px 20px, transparent 20px) 8px 8px / 42px 42px,
    #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
  text-align: center;
  white-space: pre-line;
}

.deposit-address-card > p {
  margin: 0 0 10px;
  color: #737888;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.deposit-address-box,
.deposit-tag-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--auth-button-radius);
  background: #f3f6fb;
}

.deposit-address-box span,
.deposit-tag-box b {
  min-width: 0;
  color: #2f3138;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  word-break: break-all;
}

.deposit-tag-box {
  margin-top: 8px;
}

.deposit-tag-box span {
  color: #737888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.deposit-info-card dl {
  display: grid;
  gap: 1px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8ecf3;
}

.deposit-info-card dl div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f6f8fb;
}

.deposit-info-card dt,
.deposit-info-card dd {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.deposit-info-card dt {
  color: #737888;
}

.deposit-info-card dd {
  color: #2f3138;
  text-align: right;
}

.deposit-info-card p {
  margin: 0;
  color: #737888;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.fixed-detail-summary .loss-strip {
  width: 100%;
  height: auto;
  min-height: 36px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  border-radius: var(--row-radius);
  box-sizing: border-box;
}

.fixed-detail-summary .loss-strip b {
  white-space: nowrap;
}

:root {
  --info-strip-font-size: 14px;
  --info-strip-line-height: 18px;
  --info-strip-padding-y: 8px;
  --info-strip-padding-x: 10px;
  --info-strip-min-height: 38px;
  --info-strip-radius: 6px;
  --info-strip-gap: 10px;
}

.loss-strip,
.metric-strip,
.asset-strip,
.balance-card .loss-strip,
#plansList .metric-strip,
#assetsList .asset-strip,
.fixed-detail-summary .loss-strip {
  min-height: var(--info-strip-min-height);
  height: auto;
  padding: var(--info-strip-padding-y) var(--info-strip-padding-x);
  border-radius: var(--info-strip-radius);
  box-sizing: border-box;
  gap: var(--info-strip-gap);
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

.loss-strip,
.balance-card .loss-strip,
.fixed-detail-summary .loss-strip {
  display: flex;
  align-items: center;
}

.metric-strip,
.asset-strip,
#plansList .metric-strip,
#assetsList .asset-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loss-strip b,
.balance-card .loss-strip,
.balance-card .loss-strip b,
.metric-strip span,
.metric-strip b,
.asset-strip span,
.asset-strip b,
#plansList .metric-strip span,
#plansList .metric-strip b,
#plansList .card-row h2 em,
#assetsList .asset-strip span,
#assetsList .asset-strip b,
#assetsList .asset-card h2 em,
.fixed-detail-summary .loss-strip b {
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

#plansList .investment-card {
  height: auto;
  min-height: 112px;
  align-items: stretch;
  padding-top: 16px;
  padding-right: 10px;
  padding-bottom: 16px;
  padding-left: 19px;
}

#plansList .investment-main {
  display: grid;
  align-content: stretch;
  gap: 8px;
}

#plansList .card-row {
  min-height: 22px;
  align-items: center;
  gap: 12px;
}

#plansList .card-row h2 {
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

#plansList .card-row strong {
  align-self: center;
  font-size: 20px;
  line-height: 26px;
  font-weight: 750;
}

#plansList .card-row h2 em {
  font-size: 12px;
  line-height: 14px;
  vertical-align: middle;
}

:root {
  --app-card-padding-top: 16px;
  --app-card-padding-right: 12px;
  --app-card-padding-bottom: 10px;
  --app-card-padding-left: 12px;
  --app-card-padding: var(--app-card-padding-top) var(--app-card-padding-right) var(--app-card-padding-bottom) var(--app-card-padding-left);
}

.summary-card,
.balance-card,
#plansList .investment-card,
#assetsList .asset-card,
.info-token-card,
.crypto-detail-card,
.blocks-card,
.form-card,
.chain-info-card,
.tx-list-card,
.account-profile-card,
.explore-hero,
.explore-tools,
.explore-category-panel,
.history-list,
.plan-options,
.fixed-detail-card,
.fixed-detail-summary,
.deposit-asset-card,
.deposit-network-card,
.deposit-address-card,
.deposit-info-card,
.investment-confirm-card {
  padding: var(--app-card-padding);
}

.balance-card {
  padding: var(--app-card-padding);
}

#plansList .investment-card {
  height: auto;
  padding-top: 16px;
  padding-bottom: 16px;
  grid-template-columns: minmax(0, 1fr);
}

#plansList .investment-list-icon {
  display: none;
}

#plansList .metric-strip {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.investment-flow-card .plan-options {
  width: 100%;
  padding: 0;
  justify-items: stretch;
}

.investment-flow-card .plan-options button {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.amount-field button:hover {
  color: var(--auth-button-primary);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.investment-flow-card .amount-field button:hover {
  color: #4297ff;
  background: transparent;
}

#screen-invest .segment {
  min-height: 56px;
  padding: 4px;
  gap: 6px;
}

#screen-invest .segment button {
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.balance-card .balance-title-row .muted {
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

.investment-card:hover,
#plansList .investment-card:hover,
.asset-card:hover,
#assetsList .asset-card:hover {
  transform: none;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-token-card:hover,
.summary-card:hover,
.balance-card:hover,
.crypto-detail-card:hover,
.blocks-card:hover,
.form-card:hover,
.chain-info-card:hover,
.tx-list-card:hover,
.account-profile-card:hover,
.explore-hero:hover,
.explore-tools:hover,
.explore-category-panel:hover {
  transform: none;
}

.coin-row:hover {
  transform: none;
  background: transparent;
}

#coinSheet .scrim {
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#coinSheet .sheet-panel {
  left: 50%;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: calc(100% - 32px);
  height: auto;
  max-height: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateX(-50%);
  animation: coinSheetIn 180ms ease-out;
}

@keyframes coinSheetIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

#coinSheet .sheet-panel::before {
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  background: rgba(100, 116, 139, 0.32);
}

#coinSheet .sheet-panel header {
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 10px;
}

#coinSheet .sheet-panel header h2 {
  color: #0f172a;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

#coinSheet .sheet-panel header button {
  width: 32px;
  height: 32px;
  justify-self: end;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 24px;
  line-height: 1;
}

#coinSheet .sheet-search {
  height: 42px;
  flex: 0 0 auto;
  margin-bottom: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#coinSheet .sheet-panel h3 {
  margin: 12px 4px 8px;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

#coinSheet .recent-coins {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
}

#coinSheet .recent-coins button {
  min-width: 0;
  height: 36px;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

#coinSheet .coin-list {
  display: grid;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow-y: auto;
}

#coinSheet .coin-row {
  min-height: 48px;
  grid-template-columns: 40px 58px minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
}

#coinSheet .coin-row .coin {
  width: 40px !important;
  height: 40px !important;
  font-size: 15px;
}

#coinSheet .coin-row b {
  color: #1f2937;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

#coinSheet .coin-row em {
  min-width: 0;
  padding: 0;
  color: #64748b;
  background: transparent;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
  padding: 2px 0 2px 22px;
}

.date-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6 0%, #bfdbfe 44%, #e2e8f0 100%);
}

.date-timeline p {
  position: relative;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.date-timeline p::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px #f8fafc;
  transform: translateY(-50%);
}

.date-timeline p:first-child::before {
  border-color: #3b82f6;
  background: #3b82f6;
  box-shadow:
    inset 0 0 0 3px #fff,
    0 0 0 4px #eff6ff;
}

.date-timeline span {
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.date-timeline b {
  color: #1f2937;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.investment-flow-card .note-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  list-style: none;
}

.investment-flow-card .note-list li {
  position: relative;
  padding-left: 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.investment-flow-card .note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #93c5fd;
}

.balance-card .add-investment-btn,
.balance-card .add-investment-btn:hover {
  width: 96px;
  min-width: 96px;
  padding: 0 18px;
  background: linear-gradient(180deg, #4da0ff 0%, #007aff 100%);
  box-shadow: none;
  transform: none;
}

.fixed-detail-card {
  position: relative;
  padding-top: 28px;
  border-top: 7px solid #0099FF;
  border-radius: var(--card-radius);
  overflow: visible;
}

@media (max-width: 380px) {
  .date-timeline p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .date-timeline b {
    text-align: left;
    white-space: normal;
  }
}

.coin {
  color: transparent;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  clip-path: none;
  box-shadow: none;
}

.coin::before {
  display: none;
  content: "";
}

.coin.btc {
  background-image: url("./assets/tokens/btc.svg");
}

.coin.eth {
  background-image: url("./assets/tokens/eth.svg");
}

.coin.eos {
  background-image: url("./assets/tokens/eos.svg");
}

.coin.usdt {
  background-image: url("./assets/tokens/usdt.png");
}

#assetsList .coin.usdt,
.coin.usdt {
  background: transparent url("./assets/tokens/usdt.png") center / contain no-repeat !important;
}

.coin.usdc {
  background-image: url("./assets/tokens/usdc.svg");
}

.coin.xpr {
  background-image: url("./assets/tokens/xpr.svg");
}

.coin.bkq {
  background-image: url("./assets/tokens/bkq.svg");
}

.coin.bch {
  background-image: url("./assets/tokens/bch.svg");
}

.coin {
  display: block;
  flex: 0 0 auto;
  align-self: center;
}

#assetsList .asset-card,
.asset-card,
.coin-price-row,
.info-token-card .coin-price-row,
.coin-heading,
.wallet-number,
.fixed-total-row,
.deposit-asset-card,
#coinSheet .coin-row {
  align-items: center;
}

#assetsList .asset-card > strong,
.asset-card > strong,
.coin-price-row strong,
.coin-heading strong,
.wallet-number .big-number,
.fixed-total-row .big-number,
.deposit-asset-card strong {
  align-self: center;
  display: block;
  line-height: 1.1;
}

.coin-price-row > div,
.asset-card > div,
.deposit-asset-card > div {
  align-self: center;
}

.fixed-total-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.fixed-total-row .coin {
  width: 40px;
  height: 40px;
}

.fixed-total-row .big-number {
  height: 40px;
  display: flex;
  align-items: center;
  margin-top: 0;
  line-height: 40px;
}

.balance-value-box {
  gap: 2px;
}

.balance-value-box .big-number {
  line-height: 32px;
}

.balance-value-row {
  align-items: center;
  padding: 8px 0 10px;
}

.balance-card .add-investment-btn,
.balance-card .add-investment-btn:hover {
  height: 36px;
  min-height: 36px;
  align-self: center;
}

.phone::after,
.phone:not(.detail-mode)::after,
.bottom-nav::after {
  display: none !important;
  content: none !important;
}

#assetsList .asset-card {
  height: auto;
  min-height: 112px;
  position: relative;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  padding-right: 12px;
  padding-bottom: 16px;
  padding-left: 12px;
}

#assetsList .asset-card > div {
  display: grid;
  align-content: stretch;
  gap: 8px;
}

#assetsList .coin {
  width: 40px;
  height: 40px;
}

#assetsList .asset-card h2 {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-right: 112px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

#assetsList .asset-card h2 em {
  margin-left: 0;
  font-size: 12px;
  line-height: 14px;
  font-weight: 650;
}

#assetsList .asset-card > strong {
  position: absolute;
  top: 16px;
  right: 12px;
  padding-top: 0;
  max-width: 112px;
  font-size: 20px;
  line-height: 22px;
  font-weight: 750;
  text-align: right;
}

#assetsList .asset-strip {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#assetsList .asset-strip,
#assetsList .asset-strip span,
#assetsList .asset-strip b,
#assetsList .asset-strip .red,
#assetsList .asset-strip .green {
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

#assetsList .asset-strip > b {
  color: var(--blue);
}

#assetsList .asset-strip .red {
  color: var(--red);
}

#assetsList .asset-strip .green {
  color: var(--green);
}

.quick-actions {
  padding-top: 14px;
  padding-bottom: 14px;
}

.quick-actions .quick-action-btn {
  min-height: 68px;
  gap: 6px;
}

.quick-actions .quick-action-btn,
.quick-actions .quick-action-btn:hover,
.quick-actions .quick-action-btn:active {
  color: var(--ink);
  background: transparent;
  transform: none;
  box-shadow: none;
}

.quick-actions .quick-action-btn:hover .svg-action,
.quick-actions .quick-action-btn:active .svg-action {
  transform: none;
  filter: none;
}

.quick-actions .quick-action-btn:hover .svg-action img,
.quick-actions .quick-action-btn:active .svg-action img {
  transform: none;
}

.app-header {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bottom-nav {
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 247, 250, 0.64)),
    rgba(248, 248, 248, 0.7);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.bottom-nav::before {
  display: none;
  content: none;
}

.phone:not(.detail-mode) .app-scroll {
  height: calc(100% - 56px);
}

.bottom-nav .active .nav-icon {
  filter: none;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tab-icon {
  grid-area: 1 / 1;
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  transform: none;
  transition: opacity 120ms ease;
}

.tab-icon-active,
.bottom-nav .active .tab-icon-normal,
.bottom-nav .active .tab-icon-active {
  transform: none;
}

.tab-icon-active {
  opacity: 0;
}

.bottom-nav .active .tab-icon-normal {
  opacity: 0;
}

.bottom-nav .active .tab-icon-active {
  opacity: 1;
}

.bottom-nav button,
.bottom-nav .nav-tab {
  transform: none;
}

.wallet-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-height: 125px;
  height: auto;
  max-height: none;
  padding: var(--app-card-padding);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
  overflow: visible;
}

.wallet-summary > .muted:first-child {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

.wallet-number {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wallet-number .coin {
  width: 40px;
  height: 40px;
  align-self: center;
}

.wallet-value-box {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-self: center;
}

.wallet-value-box .big-number {
  margin-top: 12px;
  color: #4297ff;
  font-size: 30px;
  line-height: 32px;
  font-weight: 500;
}

.wallet-value-box .convert {
  margin-top: 0 !important;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
}

.wallet-summary .loss-strip {
  width: 100%;
  min-height: var(--info-strip-min-height);
  height: auto;
  display: flex;
  align-items: center;
  padding: var(--info-strip-padding-y) var(--info-strip-padding-x);
  border-radius: var(--info-strip-radius);
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

.wallet-summary .loss-strip b {
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

.balance-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
  padding: 8px;
  overflow: visible;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.balance-split button {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px 10px;
  position: relative;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  text-align: left;
}

.balance-split button + button {
  border-left: 0;
}

.balance-split span {
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 650;
}

.balance-split b {
  color: #4297ff;
  font-size: 22px;
  line-height: 25px;
  font-weight: 700;
  letter-spacing: 0;
}

.balance-split button:last-child {
  padding-right: 26px;
}

.balance-split .chevron-right {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left-width: 2px;
  border-bottom-width: 2px;
  border-color: #8a90a0;
  transform: translateY(-50%) rotate(225deg);
}

.deposit-screen {
  gap: 10px;
}

.deposit-asset-card,
.deposit-network-card,
.deposit-address-card,
.deposit-info-card {
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.deposit-network-card h2,
.deposit-address-card h2,
.deposit-info-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.deposit-select-row {
  min-height: 44px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 18px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  text-align: left;
}

.deposit-select-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.deposit-select-row b {
  color: #4297ff;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

.deposit-select-row .chevron-right {
  width: 8px;
  height: 8px;
  border-left-width: 2px;
  border-bottom-width: 2px;
  border-color: #8a90a0;
}

.deposit-qr {
  width: 170px;
  height: 170px;
  margin: 12px auto 12px;
  border-width: 8px;
  border-radius: 12px;
}

.deposit-address-card > p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12px;
  line-height: 18px;
  font-weight: 650;
  text-align: center;
}

.deposit-address-box,
.deposit-tag-box {
  padding: 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.deposit-copy-btn {
  min-height: 32px;
  padding: 0 10px;
  box-shadow: none;
}

.deposit-info-card dl {
  margin-bottom: 10px;
  border-radius: var(--row-radius);
}

.deposit-info-card dl div {
  min-height: 38px;
  padding: 9px 10px;
}

.deposit-info-card p {
  padding: 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  color: var(--ink);
  font-size: 12px;
  line-height: 18px;
  font-weight: 650;
}

#networkSheet .sheet-panel {
  left: 50%;
  right: auto;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: auto;
  max-height: 44%;
  padding: 10px 16px 28px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
  transform: translateX(-50%);
  animation: coinSheetIn 180ms ease-out;
}

#networkSheet .sheet-panel::before {
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  background: rgba(100, 116, 139, 0.32);
}

#networkSheet .sheet-panel header {
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 10px;
}

#networkSheet .sheet-panel header h2 {
  color: var(--ink);
  font-size: 17px;
  line-height: 24px;
  font-weight: 750;
}

#networkSheet .sheet-panel header button {
  width: 32px;
  height: 32px;
  justify-self: end;
  color: #333543;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.network-list {
  display: grid;
  gap: 0;
}

.network-list button {
  min-height: 60px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 0 2px;
  border-bottom: 1px solid #eef1f6;
  color: #6f7282;
  background: transparent;
  text-align: left;
}

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

.network-list span {
  color: #6f7282;
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.network-list b {
  color: #9aa0ad;
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
}

.network-list button.active span {
  color: #4297ff;
}

:root {
  --app-page-bg: #f1f4fa;
  --bottom-nav-height: 64px;
  --bottom-nav-bottom: 12px;
  --floating-sheet-bottom: 16px;
}

.phone,
.app-scroll,
.screen,
.phone.success-mode .app-scroll,
.phone.detail-mode .app-scroll,
.phone:not(.detail-mode) .app-scroll {
  background: var(--app-page-bg);
}

.balance-currency-menu,
#coinSheet .sheet-panel,
#networkSheet .sheet-panel,
#addressSheet .sheet-panel,
#addressEditorSheet .sheet-panel,
#historyFilterSheet .sheet-panel {
  bottom: var(--floating-sheet-bottom);
}

#coinSheet,
#networkSheet,
#addressSheet,
#addressEditorSheet,
#historyFilterSheet {
  position: fixed;
  inset: 0;
}

#coinSheet .sheet-panel,
#networkSheet .sheet-panel,
#addressSheet .sheet-panel,
#addressEditorSheet .sheet-panel,
#historyFilterSheet .sheet-panel {
  width: min(calc(100vw - 32px), 398px);
  max-height: calc(100vh - var(--floating-sheet-bottom) - 24px);
}

#networkSheet .sheet-panel,
#addressSheet .sheet-panel,
#addressEditorSheet .sheet-panel,
#historyFilterSheet .sheet-panel {
  max-height: calc(100% - var(--floating-sheet-bottom) - 24px);
  border-radius: 18px;
}

.staked-screen {
  display: none;
  gap: 10px;
}

.staked-screen.active {
  display: grid;
}

.staked-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-height: 125px;
  height: auto;
  max-height: none;
  padding: var(--app-card-padding);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
  overflow: visible;
}

.staked-summary > .muted:first-child {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

.staked-total-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.staked-total-row .coin {
  width: 40px;
  height: 40px;
  align-self: center;
}

.staked-value-box {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-self: center;
}

.staked-value-box .big-number {
  margin-top: 12px;
  color: #4297ff;
  font-size: 30px;
  line-height: 32px;
  font-weight: 500;
}

.staked-summary .convert {
  margin-top: 0 !important;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
}

.staked-summary .loss-strip {
  width: 100%;
  min-height: var(--info-strip-min-height);
  height: auto;
  display: flex;
  align-items: center;
  padding: var(--info-strip-padding-y) var(--info-strip-padding-x);
  border-radius: var(--info-strip-radius);
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

.staked-summary .loss-strip b {
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

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

.staked-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
  text-align: left;
}

.staked-card > .coin {
  width: 40px;
  height: 40px;
}

.staked-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.staked-card .card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staked-card .card-row h2 {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

.staked-card .card-row strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 24px;
  font-weight: 750;
}

.staked-card .metric-strip,
.staked-card .metric-strip span,
.staked-card .metric-strip b {
  font-size: var(--info-strip-font-size);
  line-height: var(--info-strip-line-height);
}

#screen-ethWallet .history-head {
  padding: 0 12px 10px;
}

#screen-ethWallet .history-head h2 {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

#screen-ethWallet .history-list {
  display: grid;
  gap: 0;
  padding: 4px 12px;
  overflow: hidden;
  background: #fff;
  border-radius: var(--card-radius);
}

#screen-ethWallet .history-row,
#screen-ethWallet .history-row:nth-child(odd) {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  column-gap: 10px;
  min-height: 58px;
  padding: 9px 0;
  background: transparent;
  border-bottom: 0.5px solid var(--line);
  border-radius: 0;
}

#screen-ethWallet .history-row:last-child {
  border-bottom: 0;
}

#screen-ethWallet .history-row .status {
  width: 28px;
  height: 28px;
}

#screen-ethWallet .history-row .status img {
  width: 20px;
  height: 20px;
}

#screen-ethWallet .history-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#screen-ethWallet .history-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 19px;
  font-weight: 700;
}

#screen-ethWallet .history-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

#screen-ethWallet .history-row strong {
  justify-self: end;
  align-self: center;
  min-width: 68px;
  color: #0099ff;
  font-size: 16px;
  line-height: 21px;
  font-weight: 750;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#screen-ethWallet .history-row.out strong {
  color: var(--red);
}

#screen-ethWallet .history-row.exchange strong {
  color: #16b981;
}

#screen-ethWallet .history-row.fail strong {
  color: #697080;
}

.exchange-screen.active {
  position: relative;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - var(--ios-topbar-height) - 28px);
  margin: 0 auto;
  align-content: start;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.exchange-rate-card,
.exchange-card,
.exchange-summary-card {
  width: 100%;
  min-width: 0;
  padding: var(--app-card-padding);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.exchange-rate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.exchange-rate-card > div {
  min-width: 0;
}

.exchange-rate-card .muted {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
}

.exchange-rate-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 4.2vw, 18px);
  line-height: 22px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.exchange-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.exchange-card {
  position: relative;
  display: grid;
  gap: clamp(8px, 2.4vw, 10px);
}

.exchange-field {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: clamp(10px, 3vw, 12px);
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.exchange-field-head,
.exchange-input-row,
.exchange-balance,
.exchange-summary-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exchange-input-row {
  display: grid;
  grid-template-columns: minmax(108px, auto) minmax(0, 1fr);
  gap: 12px;
}

.exchange-field-head span,
.exchange-summary-card dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  font-weight: 650;
}

.exchange-field-head em,
.exchange-balance,
.exchange-summary-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 600;
}

.exchange-max-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: #0099ff;
  background: transparent;
  font-size: 13px;
  line-height: 17px;
  font-weight: 750;
}

.exchange-coin-btn {
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  font-size: 16px;
  line-height: 20px;
  font-weight: 750;
}

.exchange-coin-btn .coin {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: visible;
  background-size: contain;
}

.exchange-coin-btn .chevron-down {
  width: 8px;
  height: 8px;
  margin-left: 1px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.exchange-input-row input,
.exchange-input-row strong {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: clamp(22px, 7vw, 28px);
  line-height: clamp(28px, 8vw, 34px);
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-input-row strong {
  color: #0099ff;
}

.exchange-balance span {
  color: var(--ink);
}

.exchange-switch-btn {
  width: 44px;
  height: 44px;
  justify-self: center;
  display: grid;
  place-items: center;
  margin: -4px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.exchange-switch-btn img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.exchange-summary-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.exchange-summary-card dd {
  color: var(--ink);
  font-weight: 750;
  text-align: right;
}

.exchange-result {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 8px);
  z-index: 8;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: var(--row-radius);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.exchange-result.success {
  color: #12805c;
  background: #e8fbf3;
}

.exchange-result.error {
  color: var(--red);
  background: #fff0f4;
}

.exchange-actions {
  position: relative;
  align-self: end;
  padding: 8px 12px 0;
}

.exchange-actions .primary-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border-radius: var(--auth-button-radius);
  font-size: 16px;
  line-height: 22px;
}

.exchange-actions .primary-btn:disabled {
  color: #8f96a3;
  background: #e7ebf2;
  opacity: 1;
  transform: none;
  cursor: not-allowed;
}

.deposit-qr {
  width: 170px;
  height: 170px;
  margin: 12px auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.deposit-qr img {
  width: 170px;
  height: 170px;
  display: block;
  object-fit: contain;
}

.deposit-qr.is-refreshing img {
  animation: depositQrRefresh 320ms ease-out;
}

@keyframes depositQrRefresh {
  0% {
    opacity: 0.35;
    transform: scale(0.94);
    filter: blur(2px);
  }
  58% {
    opacity: 1;
    transform: scale(1.025);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

#screen-fixedDepositDetail,
#screen-fixedDepositDetail .fixed-detail-summary {
  min-width: 0;
  overflow: hidden;
}

#screen-fixedDepositDetail .fixed-detail-card {
  min-width: 0;
  overflow: visible;
}

#screen-fixedDepositDetail .fixed-total-row {
  min-width: 0;
}

#screen-fixedDepositDetail .fixed-detail-summary .big-number {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(30px, 9vw, var(--text-display));
  line-height: clamp(34px, 10vw, 40px);
}

#screen-fixedDepositDetail .fixed-detail-list {
  gap: 14px;
}

#screen-fixedDepositDetail .fixed-detail-list div {
  grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

#screen-fixedDepositDetail .fixed-detail-list dt {
  min-width: 0;
}

#screen-fixedDepositDetail .fixed-detail-list dd {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#screen-fixedDepositDetail .progress-detail dd {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

#screen-fixedDepositDetail .deposit-progress {
  width: 100%;
  min-width: 0;
}

#screen-fixedDepositDetail .progress-detail dd b {
  white-space: nowrap;
}

#screen-fixedDepositDetail .date-timeline {
  min-width: 0;
  margin-right: 0;
}

#screen-fixedDepositDetail .date-timeline p {
  grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

#screen-fixedDepositDetail .date-timeline b {
  min-width: 0;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

#screen-fixedDepositDetail .note {
  overflow-wrap: anywhere;
}

#screen-explore.active {
  display: grid !important;
  gap: 12px;
  padding-left: 12px;
  padding-right: 12px;
  background: transparent;
}

#screen-explore .explore-hero,
#screen-explore .explore-tools,
#screen-explore .explore-category-panel,
#screen-explore .explore-app-row {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

#screen-explore .explore-hero {
  height: 152px;
  min-height: 152px;
  max-height: 152px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
  padding: 20px 14px;
  border-radius: var(--card-radius);
}

#screen-explore .explore-hero::after {
  display: none;
}

#screen-explore .explore-hero > div:not(.explore-logo) {
  min-width: 0;
  height: auto;
  display: grid;
  align-content: center;
  grid-template-rows: auto auto auto;
  gap: 6px;
}

#screen-explore .explore-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--row-radius);
}

#screen-explore .explore-logo span {
  width: 26px;
  height: 26px;
  border-width: 2px;
  border-radius: 8px;
}

#screen-explore .explore-logo i {
  width: 9px;
  height: 9px;
  box-shadow: 13px 0 0 #fff, 6px 12px 0 rgba(255, 255, 255, 0.7);
}

#screen-explore .explore-hero h2 {
  margin-top: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 750;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

#screen-explore .explore-hero p,
#screen-explore .explore-hero small {
  font-size: 12px;
  line-height: 18px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

#screen-explore .explore-hero-btn {
  width: auto;
  min-width: 52px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--control-radius);
  font-size: 13px;
  line-height: 17px;
  font-weight: 750;
}

#screen-explore .explore-dots {
  height: 14px;
  margin: -2px 0 0;
}

#screen-explore .explore-dots button {
  width: 6px;
  height: 6px;
  min-width: 0;
  min-height: 0;
  border-radius: 999px;
}

#screen-explore .explore-dots button.active,
#screen-explore .explore-dots button[aria-current="true"] {
  width: 8px;
  height: 8px;
}

#screen-explore .explore-hero.is-changing #exploreHeroEyebrow,
#screen-explore .explore-hero.is-changing #exploreHeroTitle,
#screen-explore .explore-hero.is-changing #exploreHeroCopy {
  opacity: 0.62;
}

#exploreHeroEyebrow,
#exploreHeroTitle,
#exploreHeroCopy {
  transition: opacity 160ms ease;
}

#screen-explore .explore-block,
#screen-explore .explore-list-section {
  display: grid;
  gap: 8px;
}

#screen-explore .explore-list-section.is-hidden,
#screen-explore .explore-app-row.is-hidden {
  display: none !important;
}

#screen-explore .explore-title-row {
  height: auto;
  min-height: 24px;
  align-items: center;
  padding: 0 2px;
}

#screen-explore .explore-title-row.compact {
  margin-top: 0;
  padding-right: 2px;
}

#screen-explore .explore-title-row h2 {
  color: var(--ink);
  font-size: 16px;
  line-height: 22px;
  font-weight: 750;
  letter-spacing: 0;
}

#screen-explore .explore-title-row button {
  color: #0099ff;
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
}

#screen-explore .explore-tools,
#screen-explore .explore-category-panel {
  height: auto;
  margin: 0;
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
}

#screen-explore .explore-tools {
  min-height: 82px;
  gap: 8px;
}

#screen-explore .explore-tool {
  height: 58px;
  min-width: 0;
  gap: 6px;
  border-radius: var(--row-radius);
  color: var(--ink);
  transform: none;
  transition: none;
}

#screen-explore .explore-tool:hover,
#screen-explore .explore-app-row:hover {
  color: inherit;
  transform: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

#screen-explore .tool-icon,
#screen-explore .app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: none;
}

#screen-explore .explore-tool b {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

#screen-explore .explore-tabs {
  gap: 6px;
}

#screen-explore .explore-tabs button {
  height: 38px;
  border-radius: var(--row-radius);
  color: var(--ink);
  font-size: 13px;
  line-height: 17px;
  font-weight: 750;
}

#screen-explore .explore-tabs .active {
  color: var(--ink);
  background: #e6ebf7;
}

#screen-explore .explore-app-list {
  gap: 8px;
}

#screen-explore .explore-app-row {
  min-height: 68px;
  height: auto;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
  transition: none;
}

#screen-explore .explore-app-row > span:nth-child(2) {
  gap: 3px;
}

#screen-explore .explore-app-row b {
  color: var(--ink);
  font-size: 16px;
  line-height: 21px;
  font-weight: 750;
}

#screen-explore .explore-app-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
}

#screen-explore .explore-app-row em {
  width: auto;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--control-radius);
  color: var(--muted);
  background: #eef1f7;
  font-size: 13px;
  line-height: 17px;
  font-weight: 750;
}

#screen-explore .explore-app-row em.primary {
  color: #fff;
  background: #0099ff;
}

.explore-web-screen.active {
  display: grid;
  gap: 14px;
  padding-left: 12px;
  padding-right: 12px;
}

.webview-shell {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.webview-toolbar {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 0.5px solid rgba(120, 126, 140, 0.18);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.webview-control {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.webview-refresh {
  font-size: 18px;
}

.webview-refresh.is-refreshing {
  animation: webviewRefresh 0.52s ease;
}

.webview-control:active {
  transform: scale(0.94);
  opacity: 0.62;
}

@keyframes webviewRefresh {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.web-address-bar {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 18px;
  background: #eef2f8;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
  overflow: hidden;
}

.web-address-bar span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #16b981;
  box-shadow: 0 0 0 3px rgba(22, 185, 129, 0.14);
}

.webview-page {
  min-height: calc(100vh - 64px - 64px - 88px);
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(0, 153, 255, 0.08), rgba(0, 153, 255, 0) 118px),
    #f8faff;
}

.web-hero-card,
.web-content-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.web-hero-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 0.5px solid rgba(120, 126, 140, 0.12);
}

.web-hero-card .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: none;
}

.web-hero-card p,
.web-hero-card h2,
.web-hero-card small {
  margin: 0;
}

.web-hero-card p {
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.web-hero-card h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
}

.web-hero-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.web-content-card {
  display: grid;
  gap: 12px;
  border: 0.5px solid rgba(120, 126, 140, 0.12);
}

.web-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.web-stat-grid div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.web-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
}

.web-stat-grid b {
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.web-content-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 22px;
  font-weight: 750;
}

.web-feature-list {
  display: grid;
  gap: 8px;
}

.web-feature-list button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  color: var(--ink);
  font-size: 14px;
  line-height: 19px;
  font-weight: 700;
}

.web-feature-list .chevron-right {
  width: 8px;
  height: 8px;
  border-left-width: 2px;
  border-bottom-width: 2px;
  border-color: #8a90a0;
}

.web-actions {
  padding: 4px 12px 0;
}

.web-actions .primary-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border-radius: var(--auth-button-radius);
  font-size: 16px;
  line-height: 22px;
}

#screen-info.active {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px 12px 84px;
  background: var(--app-page-bg);
}

#screen-info .search-panel {
  margin: 0;
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

#screen-info .search-box {
  height: 44px;
  margin: 0;
  padding: 0 14px;
  gap: 12px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  box-shadow: none;
}

#screen-info .search-box input {
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

#screen-info .search-box input::placeholder {
  color: #8b91a0;
}

.chain-search-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.chain-search-panel:not(.is-expanded) {
  display: none;
  margin-top: 0;
}

.chain-quick-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.chain-quick-filters button {
  min-height: 34px;
  border-radius: var(--control-radius);
  background: #f3f6fb;
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.chain-search-section {
  display: grid;
  gap: 8px;
}

.chain-search-section h3,
.chain-search-summary {
  margin: 0;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.chain-search-summary {
  padding: 0 2px;
}

.chain-result-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--row-radius);
  background: #f6f8fc;
  color: var(--ink);
  cursor: pointer;
}

.chain-result-row.compact {
  min-height: 54px;
  padding: 8px 10px;
}

.chain-search-hot {
  gap: 6px;
}

.chain-search-hot .chain-result-row.compact {
  min-height: 42px;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 8px;
  padding: 7px 8px;
}

.chain-result-row .coin,
.chain-result-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.chain-result-row.compact .coin,
.chain-result-row.compact .chain-result-icon {
  width: 34px;
  height: 34px;
}

.chain-search-hot .chain-result-row.compact .coin,
.chain-search-hot .chain-result-row.compact .chain-result-icon {
  width: 28px;
  height: 28px;
}

.chain-result-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e7f2ff;
  color: #0099ff;
  font-size: 13px;
  line-height: 16px;
  font-weight: 850;
}

.chain-result-icon.address {
  background: #eef7f2;
  color: #22a36a;
}

.chain-result-icon.transaction {
  background: #fff4df;
  color: #d88a00;
}

.chain-result-icon.block {
  background: #eef2ff;
  color: #5568d8;
}

.chain-result-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chain-result-copy > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chain-result-copy b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-search-hot .chain-result-copy b {
  font-size: 12px;
  line-height: 16px;
}

.chain-result-copy span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff;
  color: #727888;
  font-size: 10px;
  line-height: 13px;
  font-weight: 750;
}

.chain-search-hot .chain-result-copy span {
  padding: 1px 5px;
  font-size: 9px;
  line-height: 12px;
}

.chain-result-copy p,
.chain-result-copy small {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-search-hot .chain-result-copy p {
  font-size: 11px;
  line-height: 14px;
}

.chain-result-copy small {
  color: #8b91a0;
}

.chain-favorite-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #c3c8d2;
  font-size: 17px;
  line-height: 1;
}

.chain-search-hot .chain-favorite-btn {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.chain-favorite-btn.active {
  color: #ffb637;
}

.chain-empty-state {
  padding: 12px;
  border-radius: var(--row-radius);
  background: #f6f8fc;
  color: #727888;
  font-size: 13px;
  line-height: 19px;
  font-weight: 650;
}

#screen-info #infoCards {
  display: grid;
  gap: 12px;
}

#screen-info .info-token-card {
  min-height: auto;
  display: grid;
  gap: 10px;
  padding: 14px 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
  text-align: left;
}

#screen-info .info-token-card:hover,
#screen-info .info-token-card:active {
  transform: none;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

#screen-info .info-token-card .coin-price-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0;
}

#screen-info .info-token-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#screen-info .info-token-card .coin {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 16px;
}

#screen-info .info-token-card .coin.eth::before {
  font-size: 22px;
}

#screen-info .info-token-card .coin-price-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 750;
}

#screen-info .info-token-value {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

#screen-info .info-token-card .coin-price-row strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 30px;
  font-weight: 650;
}

#screen-info .info-token-card .coin-price-row b {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
  white-space: nowrap;
}

#screen-info .info-token-card .network-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

#screen-info .info-token-card .network-row .bar {
  height: 8px;
  border-radius: 999px;
  background: #d9dde5;
}

#screen-info .info-token-card .network-row .bar i {
  border-radius: 999px;
  background: #0099ff;
}

#screen-info .info-token-card .network-row.warning .bar i {
  background: #ffb637;
}

#screen-info .info-token-card .network-row.danger .bar i {
  background: #ff5f66;
}

#screen-info .info-token-card .network-row em {
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--row-radius);
  background: #dfeaff;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
}

#screen-info .info-token-card .network-row.warning em {
  background: #ffe2a5;
}

#screen-info .info-token-card .network-row.danger em {
  background: #ffd1d6;
}

#screen-info .info-token-card .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#screen-info .info-token-card .mini-grid p {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

#screen-info .info-token-card .mini-grid b {
  color: #0099ff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 650;
}

.withdraw-screen.active {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px 12px 96px;
  background: var(--app-page-bg);
}

.withdraw-form-card,
.withdraw-summary-card {
  padding: 14px 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

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

.withdraw-asset-row,
.withdraw-select-row,
.withdraw-input-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.withdraw-asset-row {
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  text-align: left;
}

.withdraw-asset-row .coin {
  width: 44px;
  height: 44px;
}

.withdraw-asset-row b {
  color: var(--ink);
  font-size: 22px;
  line-height: 28px;
  font-weight: 650;
}

.withdraw-asset-row .chevron-right,
.withdraw-select-row .chevron-down {
  width: 9px;
  height: 9px;
  justify-self: end;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.withdraw-asset-row .chevron-right {
  transform: rotate(-45deg);
}

.withdraw-field-group {
  display: grid;
  gap: 8px;
}

.withdraw-field-group h2,
.withdraw-title-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 23px;
  font-weight: 750;
}

.withdraw-select-row {
  grid-template-columns: minmax(0, 1fr) 18px;
  text-align: left;
}

.withdraw-select-row b {
  color: var(--ink);
  font-size: 20px;
  line-height: 26px;
  font-weight: 650;
}

.withdraw-select-row .chevron-down {
  transform: rotate(45deg) translateY(-3px);
}

.withdraw-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.withdraw-input-row input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 650;
}

.withdraw-input-row input::placeholder {
  color: #7b8190;
}

.scan-btn,
.withdraw-max-btn,
.withdraw-title-row button {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--row-radius);
  color: #0099ff;
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.scan-btn {
  width: 42px;
  color: var(--ink);
}

.scan-btn span {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.scan-btn span::before,
.scan-btn span::after {
  content: "";
  position: absolute;
  border-color: currentColor;
  border-style: solid;
}

.scan-btn span::before {
  inset: 6px;
  border-width: 2px;
  border-radius: 2px;
}

.scan-btn span::after {
  display: none;
}

.withdraw-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.withdraw-available {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
}

.withdraw-available b {
  color: #0099ff;
}

.withdraw-discount-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 23px;
  font-weight: 750;
}

.switch-off {
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: #d7dce6;
}

.switch-off i {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: #1f222a;
  box-shadow: 0 2px 6px rgba(27, 31, 42, 0.18);
}

.withdraw-fee-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.withdraw-fee-options button {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d9dee7;
  border-radius: var(--row-radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.withdraw-fee-options button.active {
  border-color: #0099ff;
  box-shadow: inset 0 0 0 1px #0099ff;
}

.withdraw-fee-options span {
  font-size: 14px;
  line-height: 19px;
  font-weight: 750;
}

.withdraw-fee-options b {
  font-size: 18px;
  line-height: 24px;
  font-weight: 650;
}

.withdraw-note {
  margin: -2px 0 0;
}

.withdraw-summary-card {
  display: grid;
  gap: 14px;
}

.withdraw-summary-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.withdraw-summary-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.withdraw-summary-card dt,
.withdraw-summary-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 23px;
  font-weight: 750;
}

.withdraw-summary-card dd {
  color: #0099ff;
  text-align: right;
}

.withdraw-arrival-row {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 48, 56, 0.32);
}

.withdraw-arrival-row dd {
  font-size: 30px;
  line-height: 36px;
  font-weight: 650;
}

.withdraw-summary-card .primary-btn {
  height: 48px;
  min-height: 48px;
  border-radius: var(--auth-button-radius);
  font-size: 17px;
  line-height: 23px;
}

.withdraw-summary-card .primary-btn:disabled {
  opacity: 0.48;
}

.withdraw-result {
  padding: 12px;
  border-radius: var(--row-radius);
  background: #eaf7ef;
  color: #22863a;
  font-size: 13px;
  line-height: 19px;
  font-weight: 750;
}

.withdraw-result.error {
  background: #fff0f2;
  color: #d93a54;
}

.withdraw-screen.active {
  gap: 10px;
  padding: 12px 12px 96px;
}

.withdraw-form-card,
.withdraw-summary-card {
  padding: 12px;
}

.withdraw-form-card {
  gap: 12px;
}

.withdraw-asset-row,
.withdraw-select-row,
.withdraw-input-row {
  min-height: 48px;
  padding: 0 10px;
  gap: 10px;
}

.withdraw-asset-row {
  grid-template-columns: 40px minmax(0, 1fr) 12px;
}

.withdraw-asset-row .coin {
  width: 36px;
  height: 36px;
}

.withdraw-asset-row b,
.withdraw-select-row b,
.withdraw-input-row input {
  font-size: 16px;
  line-height: 22px;
  font-weight: 750;
}

.withdraw-field-group {
  gap: 7px;
}

.withdraw-field-group h2,
.withdraw-title-row h2 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.withdraw-title-row button,
.withdraw-max-btn {
  min-height: 28px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 18px;
}

.scan-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  justify-self: end;
  border-radius: 12px;
  background: transparent;
}

.scan-btn img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.scan-btn span {
  display: none;
}

.scan-btn span::before {
  display: none;
}

.withdraw-available {
  margin-top: -3px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
}

.withdraw-discount-row {
  min-height: 40px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.withdraw-discount-row .switch-off,
.withdraw-discount-row .switch-on {
  width: 46px;
  height: 28px;
}

.withdraw-fee-options {
  gap: 8px;
}

.withdraw-fee-options button {
  min-height: 64px;
  gap: 4px;
  padding: 10px;
  background: #f8faff;
}

.withdraw-fee-options button.active {
  background: #fff;
}

.withdraw-fee-options span {
  font-size: 13px;
  line-height: 18px;
}

.withdraw-fee-options b {
  font-size: 16px;
  line-height: 22px;
  font-weight: 750;
}

.withdraw-note.note-list {
  padding: 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 650;
}

.withdraw-summary-card {
  gap: 12px;
}

.withdraw-screen.active {
  gap: 10px;
  padding: 12px 12px 96px;
}

.withdraw-form-card.lift {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.withdraw-form-card {
  gap: 10px;
}

.withdraw-asset-row,
.withdraw-field-group,
.withdraw-discount-row,
.withdraw-fee-options,
.withdraw-note.note-list,
.withdraw-summary-card {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.withdraw-asset-row {
  min-height: 60px;
  padding: 12px;
  padding-right: 10px;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
}

.withdraw-asset-row .coin {
  width: 40px;
  height: 40px;
}

.withdraw-asset-row b {
  font-size: 17px;
  line-height: 22px;
}

.withdraw-field-group {
  padding: 12px;
}

.withdraw-field-group h2,
.withdraw-title-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.withdraw-select-row,
.withdraw-input-row {
  min-height: 44px;
  padding: 0 0 0 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.withdraw-input-row .withdraw-max-btn {
  margin-right: 12px;
}

.withdraw-percent-slider {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0 8px;
  isolation: isolate;
  --withdraw-slider-fill: 0%;
  --withdraw-slider-fill-value: 0;
  --withdraw-slider-inset: 8px;
  --withdraw-thumb-size: 18px;
  --withdraw-thumb-radius: calc(var(--withdraw-thumb-size) / 2);
}

.withdraw-percent-slider::before,
.withdraw-percent-slider::after {
  content: "";
  position: absolute;
  left: var(--withdraw-slider-inset);
  top: 9px;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
}

.withdraw-percent-slider::before {
  z-index: 0;
  right: var(--withdraw-slider-inset);
  background: #dfe4ed;
}

.withdraw-percent-slider::after {
  z-index: 1;
  width: calc((100% - (var(--withdraw-slider-inset) * 2)) * var(--withdraw-slider-fill-value) / 100);
  background: #0099ff;
}

.withdraw-percent-slider input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  position: relative;
  z-index: 4;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.withdraw-percent-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 24px;
  border-radius: 999px;
  background: transparent;
}

.withdraw-percent-slider input[type="range"]::-moz-range-track {
  height: 24px;
  border-radius: 999px;
  background: transparent;
}

.withdraw-percent-slider input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -2px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.withdraw-percent-slider input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.withdraw-percent-ticks {
  position: absolute;
  z-index: 2;
  left: var(--withdraw-slider-inset);
  right: var(--withdraw-slider-inset);
  top: 9px;
  height: 6px;
  pointer-events: none;
}

.withdraw-percent-ticks span {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #aab3c2;
  box-shadow: 0 0 0 1px rgba(170, 179, 194, 0.22);
  transform: translate(-50%, -50%);
}

.withdraw-percent-ticks span:nth-child(1) {
  left: 0%;
}

.withdraw-percent-ticks span:nth-child(2) {
  left: 25%;
}

.withdraw-percent-ticks span:nth-child(3) {
  left: 50%;
}

.withdraw-percent-ticks span:nth-child(4) {
  left: 75%;
}

.withdraw-percent-ticks span:nth-child(5) {
  left: 100%;
}

.withdraw-percent-ticks span.active {
  background: #0099ff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 153, 255, 0.24), 0 2px 8px rgba(0, 153, 255, 0.2);
}

.withdraw-slider-thumb {
  position: absolute;
  z-index: 5;
  left: calc(var(--withdraw-slider-inset) + (100% - (var(--withdraw-slider-inset) * 2)) * var(--withdraw-slider-fill-value) / 100);
  top: 12px;
  width: var(--withdraw-thumb-size);
  height: var(--withdraw-thumb-size);
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0099ff;
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.withdraw-percent-labels {
  position: relative;
  margin: 0 8px;
  height: 16px;
  color: #737888;
  font-size: 11px;
  line-height: 14px;
  font-weight: 750;
}

.withdraw-percent-labels span {
  position: absolute;
  top: 0;
  min-width: 28px;
  text-align: center;
  transform: translateX(-50%);
}

.withdraw-percent-labels span:first-child {
  left: 0%;
}

.withdraw-percent-labels span:nth-child(2) {
  left: 25%;
}

.withdraw-percent-labels span:nth-child(3) {
  left: 50%;
}

.withdraw-percent-labels span:nth-child(4) {
  left: 75%;
}

.withdraw-percent-labels span:last-child {
  left: 100%;
  text-align: right;
  transform: translateX(-100%);
}

.withdraw-select-row {
  padding-right: 10px;
  grid-template-columns: minmax(0, 1fr) 18px;
}

.withdraw-select-row b,
.withdraw-input-row input {
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.withdraw-asset-row .chevron-right {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-left: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  position: relative;
  transform: none;
}

.withdraw-select-row .chevron-down {
  width: 18px;
  height: 18px;
  border-left: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  position: relative;
  transform: none;
}

.withdraw-asset-row .chevron-right::before,
.withdraw-select-row .chevron-down::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translate(-50%, -50%) rotate(45deg);
}

.withdraw-title-row button,
.withdraw-max-btn {
  min-height: 28px;
  color: #0099ff;
  background: transparent;
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
}

.withdraw-available {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
}

.withdraw-discount-row {
  min-height: 56px;
  padding: 12px;
  font-size: 15px;
  line-height: 20px;
}

.withdraw-fee-options {
  padding: 12px;
}

.withdraw-fee-options button {
  min-height: 58px;
  padding: 10px;
  border: 0;
  background: #f3f6fb;
}

.withdraw-fee-options button.active {
  border: 1px solid #0099ff;
  background: #fff;
  box-shadow: inset 0 0 0 1px #0099ff;
}

.withdraw-note.note-list {
  margin: 0;
  padding: 12px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.withdraw-note.note-list li {
  padding-left: 0;
}

.withdraw-summary-card {
  padding: 12px;
}

.withdraw-summary-card dl {
  gap: 9px;
}

.withdraw-summary-card dt,
.withdraw-summary-card dd {
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.withdraw-arrival-row {
  margin-top: 2px;
  padding-top: 12px;
  border-top-color: rgba(45, 48, 56, 0.24);
}

.withdraw-arrival-row dd {
  font-size: 26px;
  line-height: 32px;
  font-weight: 650;
}

.withdraw-summary-card .primary-btn {
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  line-height: 22px;
}

.withdraw-result {
  box-shadow: none;
}

#screen-withdraw .withdraw-form-card,
#screen-withdraw .withdraw-form-card.lift {
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

#screen-withdraw .withdraw-title-row {
  width: 100%;
}

#screen-withdraw .withdraw-title-row button {
  margin-left: auto;
  padding: 0;
  justify-self: end;
}

#addressSheet .sheet-panel {
  left: 50%;
  right: auto;
  bottom: var(--floating-sheet-bottom);
  width: min(calc(100vw - 32px), 398px);
  height: auto;
  min-height: 0;
  max-height: calc(100vh - var(--floating-sheet-bottom) - 24px);
  padding: 10px 16px 20px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
  overflow: auto;
  transform: translateX(-50%);
  animation: coinSheetIn 180ms ease-out;
}

#addressSheet .sheet-panel::before {
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  background: rgba(100, 116, 139, 0.32);
}

#addressSheet .sheet-panel header {
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 10px;
}

#addressSheet .sheet-panel header h2 {
  color: var(--ink);
  font-size: 17px;
  line-height: 24px;
  font-weight: 750;
}

#addressSheet .sheet-panel header button {
  width: 32px;
  height: 32px;
  justify-self: end;
  color: #333543;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.address-option-list {
  display: grid;
  gap: 0;
}

.address-option-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #eef1f6;
}

.address-option-item:last-child {
  border-bottom: 0;
}

.address-option-row {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.address-option-row .coin {
  width: 40px;
  height: 40px;
}

.address-option-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.address-option-row b {
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 750;
}

.address-option-row p,
.address-option-row small {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-option-row small {
  color: #8b91a0;
}

.address-option-edit {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
}

.address-sheet-add {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--control-radius);
  background: #f0f6ff;
  color: #0099ff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 850;
}

#addressEditorSheet .sheet-panel {
  left: 50%;
  right: auto;
  bottom: var(--floating-sheet-bottom);
  width: min(calc(100vw - 32px), 398px);
  height: auto;
  max-height: calc(100vh - var(--floating-sheet-bottom) - 24px);
  padding: 10px 16px 18px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
  overflow: auto;
  transform: translateX(-50%);
  animation: coinSheetIn 180ms ease-out;
}

#addressEditorSheet .sheet-panel::before {
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  background: rgba(100, 116, 139, 0.32);
}

#addressEditorSheet .sheet-panel header {
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 10px;
}

#addressEditorSheet .sheet-panel header h2 {
  color: var(--ink);
  font-size: 17px;
  line-height: 24px;
  font-weight: 750;
}

#addressEditorSheet .sheet-panel header button {
  width: 32px;
  height: 32px;
  justify-self: end;
  color: #333543;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.address-editor-form {
  display: grid;
  gap: 10px;
}

.address-editor-form label {
  display: grid;
  gap: 6px;
}

.address-editor-form span {
  color: #333543;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.address-editor-form input,
.address-editor-form select,
.address-editor-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--row-radius);
  outline: none;
  background: #f3f6fb;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 750;
}

.address-editor-form textarea {
  resize: none;
  overflow-wrap: anywhere;
}

.address-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.address-editor-error {
  min-height: 18px;
  margin: 0;
  color: #ff3b30;
  font-size: 12px;
  line-height: 18px;
  font-weight: 750;
}

.address-editor-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.address-editor-actions .secondary-btn,
.address-editor-actions .primary-btn {
  height: 42px;
  min-width: 0;
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 850;
}

.address-editor-actions .danger {
  color: #ff3b30;
  background: #fff1f0;
}

.address-editor-actions .danger.hidden {
  display: none;
}

.address-editor-actions:has(.danger.hidden) {
  grid-template-columns: 1fr 1fr;
}

.address-empty-card {
  min-height: 68px;
  display: grid;
  place-items: center;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  color: #727888;
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
}

.scan-modal {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 16px;
}

.scan-modal.hidden {
  display: none;
}

.scan-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.scan-card {
  position: relative;
  z-index: 1;
  width: min(100%, 398px);
  display: grid;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28);
}

.scan-card header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
}

.scan-card header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 24px;
  font-weight: 750;
  text-align: center;
}

.scan-card header button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3f6fb;
  color: #333543;
  font-size: 24px;
  line-height: 1;
}

.scan-viewfinder {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  background: #05070d;
}

.scan-viewfinder video {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: cover;
  background: #05070d;
}

.scan-frame {
  position: absolute;
  inset: 50%;
  width: 188px;
  height: 188px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 999px rgba(5, 7, 13, 0.32);
}

.scan-frame::before,
.scan-frame::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #0099ff;
}

.scan-frame::before {
  top: 50%;
}

.scan-frame::after {
  display: none;
}

#scanStatus {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.scan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.scan-actions .primary-btn,
.scan-actions .secondary-btn {
  height: 44px;
  min-height: 44px;
  border-radius: var(--auth-button-radius);
  box-shadow: none;
}

@media (max-width: 360px) {
  .withdraw-fee-options {
    grid-template-columns: 1fr;
  }

  .withdraw-arrival-row dd {
    font-size: 24px;
    line-height: 30px;
  }

  #screen-info .info-token-card .mini-grid {
    grid-template-columns: 1fr;
  }

  #screen-info .info-token-card .coin-price-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #screen-info .info-token-value {
    justify-items: start;
    text-align: left;
  }

  #screen-fixedDepositDetail .fixed-detail-list div,
  #screen-fixedDepositDetail .date-timeline p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #screen-fixedDepositDetail .fixed-detail-list dd,
  #screen-fixedDepositDetail .date-timeline b {
    text-align: left;
  }

  #screen-fixedDepositDetail .progress-detail dd {
    grid-template-columns: 1fr auto;
  }

  .exchange-screen.active {
    gap: 10px;
  }

  .exchange-status {
    padding: 4px 8px;
    font-size: 11px;
  }

  .exchange-field-head,
  .exchange-balance,
  .exchange-summary-card dl div {
    gap: 8px;
  }

  .exchange-actions {
    padding-inline: 8px;
  }
}

#screen-account .account-profile-card:hover,
#screen-account .account-profile-card:active,
#screen-account .account-menu-row:hover,
#screen-account .account-menu-row:active,
#screen-account .settings-row:hover,
#screen-account .settings-row:active,
#screen-account .reward-entry:hover,
#screen-account .reward-entry:active,
#screen-account .logout-btn:hover,
#screen-account .logout-btn:active,
#screen-securitySettings .settings-row:hover,
#screen-securitySettings .settings-row:active,
#screen-securitySettings .logout-btn:hover,
#screen-securitySettings .logout-btn:active {
  transform: none;
  box-shadow: none;
}

#screen-account .account-profile-card:hover,
#screen-account .account-profile-card:active {
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

#screen-account .account-menu-row:hover,
#screen-account .account-menu-row:active,
#screen-account .settings-row:hover,
#screen-account .settings-row:active,
#screen-securitySettings .settings-row:hover,
#screen-securitySettings .settings-row:active {
  background: #f4f6fa;
}

#screen-account .reward-entry:hover,
#screen-account .reward-entry:active {
  background: #eeeff4;
}

#screen-account .logout-btn:hover,
#screen-account .logout-btn:active,
#screen-securitySettings .logout-btn:hover,
#screen-securitySettings .logout-btn:active {
  color: var(--auth-button-text-muted);
  background: var(--auth-button-secondary);
}

#screen-account.account-screen.active,
#screen-securitySettings.security-screen.active {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px 12px 92px;
  background: var(--app-page-bg);
}

#screen-account .account-profile-card,
#screen-account .account-summary-item,
#screen-account .account-menu-row,
#screen-account .settings-row,
#screen-account .reward-entry,
#screen-securitySettings .settings-row,
#screen-securitySettings .logout-btn {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

#screen-account .account-profile-card {
  margin: 0;
  padding: 14px;
}

#screen-account .account-status-row span {
  background: #f3f6fb;
}

#screen-account .reward-entry {
  height: 46px;
  padding: 0 12px;
}

#screen-account .account-summary-grid {
  margin: 0;
  gap: 10px;
}

#screen-account .account-summary-item {
  min-height: 78px;
  padding: 14px 12px;
}

#screen-account .settings-section-title {
  margin: 10px 2px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

#screen-account .account-menu-list,
#screen-securitySettings .settings-list.compact {
  gap: 10px;
  margin: 0;
}

#screen-account .account-menu-row,
#screen-account .settings-row,
#screen-account .logout-btn,
#screen-securitySettings .settings-row {
  min-height: 54px;
  padding: 12px 14px;
}

#screen-account .account-logout-btn {
  width: 100%;
  margin: 0;
  color: #ff7a88;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

#screen-account .account-logout-btn:hover,
#screen-account .account-logout-btn:active,
#screen-account .account-logout-btn:focus-visible {
  color: #ff7a88 !important;
  background: #fff !important;
  transform: none !important;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08) !important;
  outline: 0 !important;
}

#screen-securitySettings .settings-section-title {
  margin: 10px 2px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

#screen-securitySettings .logout-btn {
  min-height: 54px;
  margin: 0;
  color: var(--auth-button-text-muted);
  background: #fff;
}

#screen-account .account-profile-card:hover,
#screen-account .account-profile-card:active,
#screen-account .account-summary-item:hover,
#screen-account .account-summary-item:active,
#screen-account .account-menu-row:hover,
#screen-account .account-menu-row:active,
#screen-account .settings-row:hover,
#screen-account .settings-row:active,
#screen-account .reward-entry:hover,
#screen-account .reward-entry:active,
#screen-securitySettings .settings-row:hover,
#screen-securitySettings .settings-row:active,
#screen-securitySettings .logout-btn:hover,
#screen-securitySettings .logout-btn:active {
  transform: none;
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.account-sub-screen.active {
  display: grid !important;
  align-content: start;
  gap: 10px;
  padding: 12px 12px 92px;
  background: var(--app-page-bg);
}

.account-sub-screen .settings-section-title {
  margin: 10px 2px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.account-sub-hero,
.account-sub-card,
.address-card {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.account-sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 14px;
}

.account-sub-hero > .account-sub-icon {
  display: none !important;
}

.account-sub-icon {
  width: 48px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e8f4ff;
}

.account-sub-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  border: 3px solid #0099ff;
}

.account-sub-icon.verified::before {
  width: 20px;
  height: 12px;
  border-top: 0;
  border-right: 0;
  border-radius: 2px;
  transform: rotate(-45deg);
}

.account-sub-icon.notice::before {
  width: 19px;
  height: 22px;
  border-radius: 10px 10px 7px 7px;
}

.account-sub-icon.address::before {
  width: 24px;
  height: 18px;
  border-radius: 6px;
}

.account-sub-icon.preference::before {
  width: 24px;
  height: 18px;
  border: 0;
  border-radius: 3px;
  background:
    linear-gradient(#0099ff, #0099ff) 0 2px / 24px 3px no-repeat,
    linear-gradient(#0099ff, #0099ff) 0 8px / 24px 3px no-repeat,
    linear-gradient(#0099ff, #0099ff) 0 14px / 24px 3px no-repeat;
}

.account-sub-icon.preference::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0099ff;
  box-shadow: -8px 6px 0 #0099ff, 7px 12px 0 #0099ff;
}

.account-sub-icon.support::before {
  width: 24px;
  height: 22px;
  border-radius: 8px;
}

.account-sub-icon.support::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  right: 12px;
  bottom: 13px;
  border-right: 3px solid #0099ff;
  border-bottom: 3px solid #0099ff;
  transform: rotate(35deg);
}

.account-sub-icon.unverified {
  background: #fff4e6;
}

.account-sub-icon.unverified::before {
  width: 24px;
  height: 24px;
  border-color: #ff9f2e;
  border-radius: 999px;
}

.account-sub-icon.reviewing {
  background: #e8f4ff;
}

.account-sub-icon.reviewing::before {
  width: 22px;
  height: 22px;
  border-color: #0099ff;
  border-right-color: transparent;
  border-radius: 999px;
}

/* Account sub-page hero icons */
.account-sub-icon {
  --account-icon-color: #0099ff;
  --account-icon-bg: #e8f4ff;
  background: var(--account-icon-bg);
}

.account-sub-icon::before,
.account-sub-icon::after {
  box-sizing: border-box;
}

.account-sub-icon.verified,
.account-sub-icon.notice,
.account-sub-icon.address,
.account-sub-icon.preference,
.account-sub-icon.support,
.account-sub-icon.reviewing {
  --account-icon-color: #0099ff;
  --account-icon-bg: #e8f4ff;
}

.account-sub-icon.unverified {
  --account-icon-color: #ff9f2e;
  --account-icon-bg: #fff4e6;
}

.account-sub-icon.verified::before,
.account-sub-icon.unverified::before {
  width: 24px;
  height: 27px;
  border: 2.5px solid var(--account-icon-color);
  border-radius: 13px 13px 10px 10px;
  background: transparent;
  clip-path: polygon(50% 0, 92% 16%, 86% 72%, 50% 100%, 14% 72%, 8% 16%);
  transform: none;
}

.account-sub-icon.verified::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 8px;
  border-left: 2.5px solid var(--account-icon-color);
  border-bottom: 2.5px solid var(--account-icon-color);
  transform: rotate(-45deg) translate(1px, -1px);
}

.account-sub-icon.unverified::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: var(--account-icon-color);
  box-shadow: 0 15px 0 -0.5px var(--account-icon-color);
}

.account-sub-icon.notice::before {
  width: 22px;
  height: 23px;
  border: 2.5px solid var(--account-icon-color);
  border-radius: 12px 12px 8px 8px;
  border-top-width: 3px;
  background: transparent;
}

.account-sub-icon.notice::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 8px;
  height: 5px;
  border-radius: 999px;
  background: var(--account-icon-color);
  box-shadow: 0 18px 0 -2px var(--account-icon-color);
}

.account-sub-icon.address::before {
  width: 26px;
  height: 20px;
  border: 2.5px solid var(--account-icon-color);
  border-radius: 8px;
  background: transparent;
}

.account-sub-icon.address::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border: 2.5px solid var(--account-icon-color);
  border-radius: 999px;
  background: var(--account-icon-bg);
}

.account-sub-icon.preference::before {
  width: 25px;
  height: 19px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--account-icon-color), var(--account-icon-color)) 0 2px / 25px 2.5px no-repeat,
    linear-gradient(var(--account-icon-color), var(--account-icon-color)) 0 8.5px / 25px 2.5px no-repeat,
    linear-gradient(var(--account-icon-color), var(--account-icon-color)) 0 15px / 25px 2.5px no-repeat;
}

.account-sub-icon.preference::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid var(--account-icon-bg);
  border-radius: 999px;
  background: var(--account-icon-color);
  box-shadow: -8px 6.5px 0 -2px var(--account-icon-bg), -8px 6.5px 0 0 var(--account-icon-color), 8px 13px 0 -2px var(--account-icon-bg), 8px 13px 0 0 var(--account-icon-color);
  transform: translate(2px, -7px);
}

.account-sub-icon.support::before {
  width: 26px;
  height: 21px;
  border: 2.5px solid var(--account-icon-color);
  border-radius: 10px;
  background: transparent;
}

.account-sub-icon.support::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--account-icon-color);
  border-bottom: 2.5px solid var(--account-icon-color);
  background: var(--account-icon-bg);
  transform: rotate(45deg);
}

.account-sub-icon.reviewing::before {
  width: 25px;
  height: 25px;
  border: 2.5px solid var(--account-icon-color);
  border-radius: 999px;
  background: transparent;
}

.account-sub-icon.reviewing::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 8px;
  border-left: 2.5px solid var(--account-icon-color);
  border-bottom: 2.5px solid var(--account-icon-color);
  transform: translate(3px, -2px) rotate(-45deg);
}

.account-sub-hero p,
.account-detail-row span,
.permission-row span {
  margin: 0;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.account-sub-hero h2 {
  margin: 2px 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 28px;
  font-weight: 850;
}

.account-sub-hero small {
  color: #727888;
  font-size: 12px;
  line-height: 17px;
  font-weight: 650;
}

.account-sub-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.account-sub-card .settings-row {
  min-height: 50px;
  padding: 10px 12px;
  border-radius: var(--row-radius);
  background: var(--app-page-bg);
  box-shadow: none;
}

.account-sub-card .settings-row:hover,
.account-sub-card .settings-row:active {
  transform: none;
  background: var(--app-page-bg);
  box-shadow: none;
}

.account-detail-row,
.permission-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(96px, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--row-radius);
  background: var(--app-page-bg);
}

.account-detail-row b,
.permission-row b {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 19px;
  font-weight: 850;
  text-align: right;
  overflow-wrap: anywhere;
}

.preference-choice-row,
.support-row {
  grid-template-columns: minmax(0, 1fr) auto 12px;
}

.support-version-row {
  grid-template-columns: minmax(0, 1fr) auto;
  pointer-events: none;
}

.preference-choice-row span,
.support-row span {
  min-width: 0;
}

.preference-choice-row b,
.support-row b {
  min-width: 0;
  max-width: 150px;
  color: #727888;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-note-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.account-note-card b {
  color: var(--ink);
  font-size: 14px;
  line-height: 19px;
  font-weight: 850;
}

.account-note-card p {
  margin: 0;
  color: #727888;
  font-size: 12px;
  line-height: 18px;
  font-weight: 650;
}

.legal-note {
  border-top: 0;
}

.switch-row {
  grid-template-columns: minmax(0, 1fr) auto 42px;
}

.switch-row i {
  width: 38px;
  height: 22px;
  position: relative;
  border-radius: 999px;
  background: #d7dce6;
}

.switch-row i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transition: transform 160ms ease;
}

.switch-row[aria-pressed="true"] i {
  background: #0099ff;
}

.switch-row[aria-pressed="true"] i::before {
  transform: translateX(16px);
}

.account-add-address {
  height: 44px;
  border-radius: var(--control-radius);
  font-size: 15px;
  font-weight: 900;
}

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

.address-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.address-card > div,
.address-card-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.address-card-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.address-card .coin {
  width: 36px;
  height: 36px;
}

.address-card b {
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 850;
}

.address-card small {
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.address-card button {
  min-width: 44px;
  height: 34px;
  border: 0;
  border-radius: var(--control-radius);
  background: #f0f6ff;
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
}

.address-card em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 850;
  background: #e8f4ff;
}

.address-card p {
  margin: 0;
  padding: 9px 10px;
  border-radius: var(--row-radius);
  color: #727888;
  font-size: 12px;
  line-height: 17px;
  font-weight: 750;
  background: var(--app-page-bg);
  overflow-wrap: anywhere;
}

.identity-progress-card {
  display: grid;
  grid-template-columns: 32px 1fr 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.identity-progress-card span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #8a909e;
  font-size: 13px;
  font-weight: 850;
  background: var(--app-page-bg);
}

.identity-progress-card span.active {
  color: #fff;
  background: #0099ff;
}

.identity-progress-card i {
  height: 3px;
  border-radius: 999px;
  background: #e4e8f0;
}

.identity-step {
  display: none;
  gap: 10px;
}

.identity-step.active {
  display: grid;
}

.identity-check-list,
.identity-form-card,
.identity-review-card,
.identity-upload-grid button {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.identity-check-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.identity-check-list p {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--row-radius);
  color: var(--ink);
  font-size: 14px;
  line-height: 19px;
  font-weight: 800;
  background: var(--app-page-bg);
}

.identity-check-list span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0099ff;
  background: #eaf1fb;
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.identity-check-list p:nth-child(1) span::before {
  content: "1";
}

.identity-check-list p:nth-child(2) span::before {
  content: "2";
}

.identity-check-list p:nth-child(3) span::before {
  content: "3";
}

.identity-form-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.identity-form-card label {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: var(--row-radius);
  background: var(--app-page-bg);
}

.identity-form-card span {
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.identity-form-card input,
.identity-form-card select {
  width: 100%;
  min-height: 34px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
  background: transparent;
}

.identity-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.identity-upload-grid button {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 6px;
}

.identity-upload-grid button span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #e8f4ff;
}

.identity-upload-grid button.uploaded span {
  background: #0099ff;
}

.identity-upload-grid b {
  color: var(--ink);
  font-size: 13px;
  line-height: 17px;
  font-weight: 850;
}

.identity-upload-grid small {
  color: #727888;
  font-size: 11px;
  line-height: 15px;
  font-weight: 750;
}

.identity-upload-grid button.uploaded small {
  color: #0099ff;
}

.identity-primary {
  height: 48px;
  border-radius: var(--control-radius);
  font-size: 16px;
  font-weight: 900;
}

.identity-review-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  text-align: center;
}

.identity-review-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #0099ff;
  box-shadow: 0 0 0 12px rgba(0, 153, 255, 0.16);
}

.identity-review-card h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 30px;
  font-weight: 900;
}

.identity-review-card p {
  max-width: 280px;
  margin: 0;
  color: #727888;
  font-size: 13px;
  line-height: 19px;
  font-weight: 750;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  background: var(--app-page-bg);
}

.phone {
  width: min(100%, 430px);
  min-height: 100vh;
  height: auto;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--app-page-bg);
}

.app-scroll,
.phone.detail-mode .app-scroll,
.phone:not(.detail-mode) .app-scroll,
.phone.success-mode .app-scroll,
.phone.detail-mode.confirm-mode .app-scroll {
  height: auto;
  min-height: calc(100vh - var(--ios-topbar-height));
  overflow: visible;
  padding-bottom: 108px;
  background: var(--app-page-bg);
}

.phone.detail-mode .app-scroll,
.phone.success-mode .app-scroll {
  padding-bottom: 28px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--ios-topbar-height) + 10px);
  z-index: 220;
  min-width: 104px;
  max-width: min(calc(100vw - 48px), 320px);
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(45, 48, 56, 0.92);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

#historyFilterSheet .sheet-panel {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: var(--floating-sheet-bottom);
  width: calc(100% - 32px);
  max-width: 398px;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
  animation: coinSheetIn 180ms ease-out;
}

#preferenceSheet .sheet-panel {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: var(--floating-sheet-bottom);
  width: calc(100% - 32px);
  max-width: 398px;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
  animation: coinSheetIn 180ms ease-out;
}

#historyFilterSheet .sheet-panel::before {
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  background: rgba(100, 116, 139, 0.32);
}

#preferenceSheet .sheet-panel::before {
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  background: rgba(100, 116, 139, 0.32);
}

#historyFilterSheet .sheet-panel header {
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 10px;
}

#preferenceSheet .sheet-panel header {
  grid-template-columns: 40px 1fr 40px;
  margin-bottom: 10px;
}

#historyFilterSheet .sheet-panel header h2 {
  color: #0f172a;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

#preferenceSheet .sheet-panel header h2 {
  color: #0f172a;
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
}

#historyFilterSheet .sheet-panel header button {
  width: 32px;
  height: 32px;
  justify-self: end;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 24px;
  line-height: 1;
}

.preference-sheet-panel header button,
#preferenceSheet .sheet-panel header button {
  width: 32px;
  height: 32px;
  justify-self: end;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 24px;
  line-height: 1;
}

.history-filter-options,
.preference-sheet-options {
  display: grid;
  gap: 8px;
}

.history-filter-options button,
.preference-sheet-options button {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
}

.preference-sheet-options button b {
  color: #737888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.history-filter-options button.active,
.preference-sheet-options button.active {
  color: #0099ff;
  background: #e8f4ff;
}

.history-filter-options button.active::after,
.preference-sheet-options button.active::after {
  display: none;
  content: none;
}

.history-empty {
  padding: 24px 12px;
  color: #737888;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: var(--bottom-nav-bottom);
  width: min(calc(100% - 28px), 402px);
  transform: translateX(-50%);
  z-index: 80;
  pointer-events: auto;
  isolation: isolate;
}

.bottom-nav button,
.bottom-nav .nav-tab {
  pointer-events: auto;
}

#coinSheet,
#networkSheet,
#addressSheet,
#addressEditorSheet,
#historyFilterSheet,
.sheet,
.activity-popup,
.investment-confirm-modal,
.balance-currency-scrim {
  z-index: 140;
}

#coinSheet .scrim,
#networkSheet .scrim,
#addressSheet .scrim,
#addressEditorSheet .scrim,
#historyFilterSheet .scrim,
.sheet .scrim,
.activity-scrim,
.investment-confirm-scrim {
  z-index: 141;
}

#coinSheet .sheet-panel,
#networkSheet .sheet-panel,
#addressSheet .sheet-panel,
#addressEditorSheet .sheet-panel,
#historyFilterSheet .sheet-panel,
.sheet-panel,
.popup-card,
.investment-confirm-card,
.balance-currency-menu {
  z-index: 142;
}

.investment-confirm-modal {
  z-index: 150;
}

.scan-modal {
  z-index: 170;
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.magnify,
#screen-info .magnify {
  width: 15px;
  height: 14px;
  flex: 0 0 15px;
  border: 0;
  border-radius: 0;
  background: url("./assets/icons/search.svg") center / contain no-repeat;
}

.magnify::before,
.magnify::after {
  display: none !important;
}

body.popup-scroll-locked {
  overflow: hidden;
}

.app-scroll.popup-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.sheet-panel,
.investment-confirm-card,
.scan-card,
.balance-currency-menu {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#screen-ethWallet .history-head {
  padding: 0 0 8px;
}

#screen-ethWallet .history-head h2 {
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 750;
}

#screen-ethWallet .history-filter-bar {
  position: relative;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 16px;
}

#screen-ethWallet .history-filter-select {
  position: relative;
  flex: 0 0 auto;
}

#screen-ethWallet .history-filter-select > button {
  min-width: 72px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #cfd4dd;
  border-radius: 10px;
  background: #fff;
  color: #666b76;
  box-shadow: none;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  white-space: nowrap;
}

#screen-ethWallet .history-filter-select > button i,
#screen-ethWallet .history-row-chevron {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
}

#screen-ethWallet .history-filter-select > button i {
  width: 7px;
  height: 7px;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
}

#screen-ethWallet .history-filter-select > button[aria-expanded="true"] i {
  transform: rotate(225deg) translate(-1px, -1px);
}

#screen-ethWallet .history-filter-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 90;
  min-width: 156px;
  max-height: 260px;
  display: grid;
  gap: 4px;
  padding: 6px;
  overflow: auto;
  border: 1px solid #e2e6ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#screen-ethWallet .history-filter-menu.hidden {
  display: none;
}

#screen-ethWallet .history-filter-menu button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border-radius: 10px;
  color: #424752;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 18px;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}

#screen-ethWallet .history-filter-menu button.active {
  color: #0099ff;
  background: #eef7ff;
}

#screen-ethWallet .history-filter-menu button.active::after {
  content: "";
  width: 7px;
  height: 12px;
  border-right: 2px solid #0099ff;
  border-bottom: 2px solid #0099ff;
  transform: rotate(45deg) translateY(-1px);
}

#screen-ethWallet .history-list {
  display: grid;
  gap: 18px;
  padding: 0 0 24px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

#screen-ethWallet .history-month-group {
  display: grid;
  gap: 10px;
}

#screen-ethWallet .history-month-group > h3 {
  margin: 0;
  color: #666b76;
  font-size: 16px;
  line-height: 22px;
  font-weight: 850;
}

#screen-ethWallet .history-month-list {
  display: grid;
  gap: 8px;
}

#screen-ethWallet .history-row,
#screen-ethWallet .history-row:nth-child(odd),
#screen-ethWallet .history-row:last-child {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 16px;
  align-items: center;
  column-gap: 10px;
  min-height: 76px;
  padding: 13px 20px 13px 12px;
  border: 0;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-align: left;
}

#screen-ethWallet .history-row .status {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  align-self: center;
}

#screen-ethWallet .history-row .status img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

#screen-ethWallet .history-row > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

#screen-ethWallet .history-row h3 {
  margin: 0;
  color: #30333a;
  font-size: 18px;
  line-height: 22px;
  font-weight: 850;
}

#screen-ethWallet .history-row p {
  margin: 0;
  color: #707582;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#screen-ethWallet .history-row strong,
#screen-ethWallet .history-row.out strong,
#screen-ethWallet .history-row.exchange strong,
#screen-ethWallet .history-row.fail strong {
  justify-self: end;
  align-self: center;
  min-width: 0;
  color: #30333a;
  font-size: 19px;
  line-height: 24px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#screen-ethWallet .history-row-chevron {
  justify-self: end;
  color: #737782;
}

#screen-ethWallet .history-empty {
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 18px 12px;
  border-radius: 14px;
  background: #fff;
  color: #737888;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
}

.wallet-transaction-screen.active {
  display: grid;
  gap: 12px;
}

.transaction-status-card,
.transaction-detail-card {
  width: 100%;
  padding: var(--app-card-padding);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.transaction-status-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  padding: 13px 20px 13px 12px;
}

.transaction-detail-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.transaction-detail-icon img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.transaction-status-card p,
.transaction-detail-title span {
  margin: 0;
  color: #737888;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.transaction-status-card h2,
.transaction-detail-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 850;
}

.transaction-status-card > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.transaction-status-card strong {
  color: #30333a;
  font-size: 19px;
  line-height: 24px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.transaction-status-card.failed strong {
  color: #737888;
}

.transaction-detail-card {
  display: grid;
  gap: 14px;
}

.transaction-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transaction-detail-title span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3fb;
  color: #697080;
}

.transaction-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.transaction-detail-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 0.5px solid var(--line);
}

.transaction-detail-list dt,
.transaction-detail-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.transaction-detail-list dt {
  color: #737888;
  font-weight: 700;
}

.transaction-detail-list dd {
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

.chain-tx-detail-screen.active {
  display: grid !important;
  gap: 12px;
  padding: 12px;
  background: var(--app-page-bg);
}

.chain-tx-status-card,
.chain-tx-route-card {
  width: 100%;
  padding: var(--app-card-padding);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.13);
}

.chain-tx-status-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.chain-tx-status-card .tx-status {
  width: 42px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #12834a;
  background: #dcf8e8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
}

.chain-tx-status-card .tx-status.internal {
  color: #006fc9;
  background: #e8f4ff;
}

.chain-tx-status-card > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.chain-tx-status-card p {
  margin: 0;
  color: #737888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-tx-status-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 24px;
  font-weight: 850;
  white-space: nowrap;
}

.chain-tx-status-card > b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0099ff;
  background: #e8f4ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.chain-tx-route-card {
  display: grid;
  gap: 12px;
}

.chain-tx-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.chain-tx-route p {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: 0;
}

.chain-tx-route span {
  color: #737888;
  font-size: 11px;
  line-height: 14px;
  font-weight: 750;
}

.chain-tx-route b {
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-tx-route i {
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 999px;
  background: #fff;
}

.chain-tx-route i::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0099ff;
  border-bottom: 2px solid #0099ff;
  transform: rotate(-45deg);
}

/* Unified radius system */
:root {
  --card-radius: 8px;
  --row-radius: 8px;
  --control-radius: 8px;
  --auth-button-radius: 8px;
  --info-strip-radius: 6px;
  --sheet-radius: 18px;
}

.summary-card,
.balance-card,
.investment-card,
.asset-card,
.info-token-card,
.crypto-detail-card,
.blocks-card,
.form-card,
.chain-info-card,
.tx-list-card,
.account-profile-card,
.account-menu-card,
.security-card,
.explore-hero,
.explore-tools,
.explore-category-panel,
.webview-card,
.staked-summary,
.staked-card,
.exchange-rate-card,
.exchange-card,
.exchange-summary-card,
.deposit-asset-card,
.deposit-network-card,
.deposit-address-card,
.deposit-info-card,
.withdraw-form-card,
.withdraw-summary-card,
.fixed-detail-summary,
.fixed-detail-card,
.transaction-status-card,
.transaction-detail-card,
#screen-ethWallet .history-row,
#screen-ethWallet .history-empty,
.balance-currency-card,
.popup-card,
.investment-confirm-card {
  border-radius: var(--card-radius) !important;
}

.metric-strip,
.loss-strip,
.asset-strip,
.deposit-select-row,
.withdraw-asset-row,
.withdraw-select-row,
.withdraw-input-row,
.deposit-address-box,
.network-list button,
.coin-row,
.address-option-row,
.history-filter-options button,
.history-filter-select > button,
.exchange-field,
.exchange-input-row,
.exchange-result,
.tx-row,
.block-row,
.chain-block-row,
.identity-step,
.settings-list-row,
.security-row,
.account-menu-row {
  border-radius: var(--row-radius) !important;
}

.primary-btn,
.secondary-btn,
.success-primary,
.success-secondary,
.chain-bottom-btn,
.deposit-copy-btn,
.deposit-change-btn,
.exchange-max-btn,
.exchange-coin-btn,
.withdraw-percent-slider,
.filter-chip,
.segment,
.segment button,
input,
textarea,
select,
.search-box {
  border-radius: var(--control-radius) !important;
}

#coinSheet .sheet-panel,
#networkSheet .sheet-panel,
#addressSheet .sheet-panel,
#addressEditorSheet .sheet-panel,
#historyFilterSheet .sheet-panel,
.sheet-panel,
.scan-card,
.balance-currency-menu {
  border-radius: var(--sheet-radius) !important;
}

/* Root tab spacing should match the finance page rhythm. */
:root {
  --root-tab-x: 12px;
  --root-tab-y: 12px;
  --root-tab-gap: 12px;
  --root-navbar-clearance: 108px;
}

.phone:not(.detail-mode) .app-scroll {
  padding-bottom: var(--root-navbar-clearance) !important;
}

#screen-invest.active,
#screen-explore.active,
#screen-info.active,
#screen-account.account-screen.active {
  display: grid !important;
  align-content: start;
  gap: var(--root-tab-gap) !important;
  padding: var(--root-tab-y) var(--root-tab-x) 0 !important;
  background: var(--app-page-bg) !important;
}

#screen-invest > :first-child,
#screen-explore > :first-child,
#screen-info > :first-child,
#screen-account > :first-child {
  margin-top: 0 !important;
}

#screen-invest > :last-child,
#screen-explore > :last-child,
#screen-info > :last-child,
#screen-account > :last-child {
  margin-bottom: 0 !important;
}

#screen-invest.active .segment {
  margin: 0 0 -4px !important;
}

#screen-invest.active #plansList,
#screen-invest.active #assetsList {
  margin-top: 0 !important;
}

#screen-invest.active #addWalletAction {
  margin: 0 !important;
}

.add-wallet-action {
  width: 100%;
}

.add-wallet-btn {
  width: 100%;
  min-height: 68px;
  border: 0;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--card-shadow);
  color: #1f2633;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.add-wallet-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 153, 255, 0.14), rgba(0, 153, 255, 0.06));
  border: 1px solid rgba(0, 153, 255, 0.18);
  position: relative;
  display: block;
  flex: 0 0 auto;
}

.add-wallet-icon::before,
.add-wallet-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.add-wallet-icon::before {
  width: 16px;
  height: 2px;
}

.add-wallet-icon::after {
  width: 2px;
  height: 16px;
}

.add-wallet-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.add-wallet-copy b {
  color: #1f2633;
  font-size: 17px;
  line-height: 20px;
  font-weight: 750;
}

.add-wallet-copy small {
  color: #747b8c;
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
}

.add-wallet-cta {
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 153, 255, 0.1);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 750;
}

.add-wallet-btn:hover,
.add-wallet-btn:active {
  background: #fff;
  transform: none;
}

.add-wallet-screen.active {
  display: grid !important;
  align-content: start;
  gap: var(--stack-gap);
  padding: var(--page-y) var(--page-x) 96px;
  background: var(--app-page-bg);
}

.add-wallet-setup-card,
.add-wallet-preview-card {
  border-radius: var(--card-radius);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.add-wallet-setup-card > .muted {
  margin: 0;
  color: #6f7585;
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
}

.add-wallet-select-row {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: var(--row-radius);
  background: #f3f6fc;
  color: #1f2633;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 10px;
  text-align: left;
}

.add-wallet-select-row .coin {
  width: 40px;
  height: 40px;
}

.add-wallet-select-row > span:not(.coin):not(.network-badge) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.add-wallet-select-row b {
  color: #1f2633;
  font-size: 15px;
  line-height: 18px;
  font-weight: 750;
}

.add-wallet-select-row small {
  color: #71798b;
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-wallet-select-row .chevron-down {
  justify-self: end;
  margin-right: 10px;
}

.network-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 153, 255, 0.1);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
}

.add-wallet-label {
  color: #1f2633;
  font-size: 13px;
  line-height: 16px;
  font-weight: 750;
}

.add-wallet-name-input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--row-radius);
  background: #f3f6fc;
  color: #1f2633;
  padding: 0 12px;
  font-size: 15px;
  line-height: 18px;
  font-weight: 650;
  outline: none;
}

.add-wallet-name-input:focus {
  box-shadow: inset 0 0 0 1px rgba(0, 153, 255, 0.45);
}

.add-wallet-tip {
  margin: 0;
  color: #71798b;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.add-wallet-preview-card h2 {
  margin: 0;
  color: #1f2633;
  font-size: var(--text-card-title);
  line-height: 20px;
  font-weight: 750;
}

.add-wallet-preview-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.add-wallet-preview-card dl div {
  min-height: 38px;
  border-radius: var(--row-radius);
  background: #f3f6fc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.add-wallet-preview-card dt,
.add-wallet-preview-card dd {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
}

.add-wallet-preview-card dt {
  color: #71798b;
}

.add-wallet-preview-card dd {
  color: #1f2633;
  text-align: right;
  overflow-wrap: anywhere;
}

.add-wallet-bottom-action {
  width: 100%;
  padding: 4px 0 0;
  display: block;
}

.add-wallet-bottom-action .primary-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: var(--auth-button-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 800;
  box-shadow: none;
}

.add-wallet-select-row:hover,
.add-wallet-select-row:active,
.add-wallet-bottom-action .primary-btn:hover,
.add-wallet-bottom-action .primary-btn:active {
  transform: none;
}

#screen-ethInfo .blocks-card,
#screen-ethInfo .blocks-card.lift,
#screen-ethInfo .blocks-card-head {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#screen-ethInfo .blocks-card-head {
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Add investment amount field polish */
#screen-addInvestment .amount-title-row {
  margin: 16px 0 8px !important;
}

#screen-addInvestment .amount-title-row h2 {
  color: var(--ink) !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 800 !important;
}

#screen-addInvestment .auto-renew {
  gap: 7px !important;
  color: #727888 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
}

#screen-addInvestment .amount-field {
  min-height: 50px !important;
  height: 50px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 12px 0 14px !important;
  border: 0 !important;
  border-radius: var(--row-radius) !important;
  background: #f3f6fb !important;
  box-shadow: none !important;
}

#screen-addInvestment .amount-field input {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--ink) !important;
  background: transparent !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

#screen-addInvestment .amount-field input:focus {
  outline: none !important;
  box-shadow: none !important;
}

#screen-addInvestment .amount-field button {
  min-width: 44px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: var(--control-radius) !important;
  color: #0099ff !important;
  background: transparent !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 850 !important;
  text-align: center !important;
  transform: none !important;
  box-shadow: none !important;
}

#screen-addInvestment .amount-field button:hover,
#screen-addInvestment .amount-field button:active,
#screen-addInvestment .amount-field button:focus-visible {
  color: #0099ff !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

#screen-addInvestment .available {
  margin: 8px 2px 18px !important;
  color: #727888 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 750 !important;
}

#screen-addInvestment .available b {
  color: #0099ff !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 850 !important;
}

/* Completion screens should follow the compact app type scale. */
.success-screen.active {
  padding: 0 16px 24px !important;
  gap: 18px !important;
}

.success-screen.active .success-content {
  gap: 12px !important;
  padding: 92px 0 28px !important;
}

.success-check,
.success-check.redeem-check {
  width: 88px !important;
  height: 88px !important;
  display: grid !important;
  place-items: center !important;
  background: #69adff !important;
  box-shadow: 0 0 0 10px rgba(66, 151, 255, 0.28) !important;
}

.success-check::after,
.success-check.redeem-check::after {
  left: 50% !important;
  top: 50% !important;
  width: 34px !important;
  height: 19px !important;
  border-left: 7px solid #fff !important;
  border-bottom: 7px solid #fff !important;
  border-radius: 3px !important;
  transform: translate(-50%, -58%) rotate(-45deg) !important;
  transform-origin: center !important;
}

.success-content h2,
.redeem-success-screen .success-content h2 {
  margin: 10px 0 0 !important;
  color: var(--ink) !important;
  font-size: 20px !important;
  line-height: 26px !important;
  font-weight: 850 !important;
  text-align: center !important;
}

.success-content strong,
.exchange-success-screen .success-content strong,
.redeem-success-screen .success-content strong {
  color: var(--ink) !important;
  font-size: 28px !important;
  line-height: 34px !important;
  font-weight: 850 !important;
  text-align: center !important;
}

.success-content p,
.exchange-success-screen .success-content p,
.redeem-success-screen .success-content p {
  max-width: 300px !important;
  margin: 0 auto !important;
  color: #727888 !important;
  font-size: 13px !important;
  line-height: 19px !important;
  font-weight: 750 !important;
  text-align: center !important;
}

.success-actions {
  gap: 10px !important;
}

.success-actions button,
#confirmInvestment.fixed-confirm.success-actions button {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: var(--control-radius) !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 850 !important;
  transform: none !important;
}

.success-actions .success-secondary:hover,
.success-actions .success-secondary:active,
.success-actions .success-primary:hover,
.success-actions .success-primary:active {
  transform: none !important;
}

.logout-confirm-modal .investment-confirm-card h2 {
  color: var(--ink);
}

.logout-confirm-modal .investment-confirm-card {
  min-height: 278px !important;
  padding: 24px 18px 18px !important;
  display: grid !important;
  align-content: start !important;
}

.logout-wave-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  justify-self: center;
  margin: 2px 0 14px;
  border-radius: 22px;
  background: #fff1f3;
  color: #ff7a88;
}

.logout-wave-icon::before {
  content: "掰";
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ff7a88;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  transform-origin: 70% 70%;
  animation: logoutWave 1.05s ease-in-out infinite;
}

@keyframes logoutWave {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  20% {
    transform: rotate(12deg) translateY(-1px);
  }
  40% {
    transform: rotate(-9deg) translateY(1px);
  }
  60% {
    transform: rotate(10deg) translateY(-1px);
  }
  80% {
    transform: rotate(-5deg) translateY(0);
  }
}

.logout-confirm-modal .logout-confirm-btn,
.logout-confirm-modal .logout-confirm-btn:hover,
.logout-confirm-modal .logout-confirm-btn:active {
  color: #fff !important;
  background: #ff7a88 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Onboarding and authentication entry */
.phone.onboarding-mode .app-header,
.phone.onboarding-mode .bottom-nav,
.phone.onboarding-mode::after {
  display: none !important;
}

.phone.onboarding-mode .app-scroll {
  min-height: 100vh !important;
  padding: 0 !important;
  background: #f2f5fb !important;
}

.onboarding-screen.active {
  min-height: 100vh;
  display: grid !important;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  padding: 0 16px 18px !important;
  background: #f2f5fb;
  overflow: hidden;
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.onboarding-header img {
  width: 171px;
  height: auto;
  display: block;
  margin-left: -16px;
  margin-top: 10px;
}

.onboarding-header button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #6f7787;
  background: transparent;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.onboarding-header button:hover,
.onboarding-header button:active {
  color: #6f7787;
  background: transparent;
  transform: none;
}

.onboarding-slides {
  min-height: 0;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.onboarding-slides.is-dragging {
  cursor: grabbing;
}

.onboarding-slides.is-dragging .onboarding-slide.active {
  transition: none;
}

.onboarding-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.onboarding-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.onboarding-visual {
  width: 100%;
  max-width: 340px;
  height: 310px;
  justify-self: center;
  align-self: center;
  position: relative;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 42, 60, 0.09);
  overflow: hidden;
}

.security-visual {
  display: grid;
  place-items: center;
}

.security-orbit {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #dce7f2;
  border-radius: 50%;
}

.security-orbit::before,
.security-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid #e7eef6;
  border-radius: 50%;
}

.security-orbit::after { inset: 58px; }

.security-orbit span,
.security-orbit i,
.security-orbit b {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0099ff;
  box-shadow: 0 0 0 5px #e6f5ff;
}

.security-orbit span { left: 16px; top: 58px; }
.security-orbit i { right: 4px; top: 112px; }
.security-orbit b { left: 98px; bottom: -4px; }

.security-shield {
  width: 104px;
  height: 120px;
  position: relative;
  background: #0099ff;
  clip-path: polygon(50% 0, 92% 15%, 88% 68%, 50% 100%, 12% 68%, 8% 15%);
}

.security-shield span {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 34px;
  height: 18px;
  border-left: 7px solid #fff;
  border-bottom: 7px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.security-visual > small {
  position: absolute;
  bottom: 28px;
  color: #7a8291;
  font-size: 10px;
  line-height: 14px;
  font-weight: 850;
  letter-spacing: 1.4px;
}

.portfolio-visual {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  background: #eaf0f8;
}

.portfolio-preview-card,
.portfolio-token-row {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 42, 60, 0.07);
}

.portfolio-preview-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 15px;
}

.portfolio-preview-card small,
.portfolio-preview-card span {
  color: #777f8f;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

.portfolio-preview-card strong {
  color: #0099ff;
  font-size: 28px;
  line-height: 34px;
  font-weight: 850;
}

.portfolio-token-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
}

.portfolio-token-row .coin {
  width: 36px;
  height: 36px;
}

.portfolio-token-row > span {
  display: grid;
  gap: 1px;
}

.portfolio-token-row b,
.portfolio-token-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 17px;
  font-weight: 850;
}

.portfolio-token-row small {
  color: #808796;
  font-size: 10px;
  line-height: 14px;
  font-weight: 650;
}

.chain-visual {
  background: #f8fbff;
}

.chain-visual svg {
  position: absolute;
  inset: 70px 20px 20px;
  width: calc(100% - 40px);
  height: calc(100% - 90px);
}

.chain-visual svg path {
  fill: none;
  stroke: #c8d8e8;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.chain-search-preview {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  top: 18px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: var(--row-radius);
  color: #858d9c;
  background: #edf2f8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.chain-search-preview i {
  width: 15px;
  height: 15px;
  position: relative;
  border: 2px solid #0099ff;
  border-radius: 50%;
}

.chain-search-preview i::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: #0099ff;
  transform: rotate(45deg);
}

.chain-node {
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 6px solid #e5f3ff;
  border-radius: 50%;
  color: #fff;
  background: #0099ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.16);
}

.chain-node.node-a { left: 38px; top: 96px; }
.chain-node.node-b { left: calc(50% - 29px); top: 126px; }
.chain-node.node-c { right: 36px; top: 88px; }

.onboarding-visual.simple-visual {
  max-width: 300px;
  height: 270px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.simple-visual > small {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: max-content;
  max-width: 90%;
  color: #788191;
  font-size: 11px;
  line-height: 16px;
  font-weight: 750;
  transform: translateX(-50%);
}

.motion-halo {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 172px;
  height: 172px;
  border: 1px solid #cfe6f7;
  border-radius: 50%;
  background: rgba(0, 153, 255, 0.04);
  transform: translate(-50%, -50%);
  animation: onboardingPulse 2.8s ease-in-out infinite;
}

.motion-halo::before,
.motion-halo::after {
  content: "";
  position: absolute;
  border: 1px solid #dfeaf4;
  border-radius: 50%;
}

.motion-halo::before { inset: 22px; }
.motion-halo::after { inset: 48px; }

.motion-shield {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 82px;
  height: 94px;
  background: #0099ff;
  clip-path: polygon(50% 0, 92% 15%, 88% 68%, 50% 100%, 12% 68%, 8% 15%);
  transform: translate(-50%, -50%);
  animation: onboardingFloat 2.4s ease-in-out infinite;
}

.motion-shield i {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 27px;
  height: 14px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.motion-security-dots i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0099ff;
  box-shadow: 0 0 0 4px #e5f4ff;
  animation: onboardingDot 2.4s ease-in-out infinite;
}

.motion-security-dots i:nth-child(1) { left: 54px; top: 92px; }
.motion-security-dots i:nth-child(2) { right: 54px; top: 126px; animation-delay: 0.35s; }
.motion-security-dots i:nth-child(3) { left: 96px; top: 210px; animation-delay: 0.7s; }

.motion-wallet-card {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 154px;
  height: 112px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(30, 42, 60, 0.13);
  transform: translate(-50%, -50%);
  animation: onboardingFloat 2.6s ease-in-out infinite;
}

.motion-wallet-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  height: 12px;
  border-radius: 5px;
  background: #e9eef5;
}

.motion-wallet-card i,
.motion-wallet-card span,
.motion-wallet-card b {
  position: absolute;
  left: 16px;
  height: 8px;
  border-radius: 4px;
  background: #dce4ee;
}

.motion-wallet-card i { top: 51px; width: 92px; }
.motion-wallet-card span { top: 69px; width: 64px; }
.motion-wallet-card b { right: 16px; left: auto; bottom: 16px; width: 38px; height: 24px; background: #0099ff; }

.motion-token {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 5px solid #e7f4ff;
  border-radius: 50%;
  color: #fff;
  background: #0099ff;
  font-size: 16px;
  line-height: 1;
  font-weight: 850;
  box-shadow: 0 5px 12px rgba(0, 153, 255, 0.16);
  animation: onboardingToken 3s ease-in-out infinite;
}

.motion-token.token-one { left: 46px; top: 66px; }
.motion-token.token-two { right: 42px; top: 164px; animation-delay: 0.8s; }

.motion-blocks {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 164px;
  height: 116px;
  transform: translate(-50%, -50%);
}

.motion-blocks i {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid #dce6f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 42, 60, 0.08);
  animation: onboardingBlock 2.8s ease-in-out infinite;
}

.motion-blocks i:nth-child(1) { left: 0; top: 26px; }
.motion-blocks i:nth-child(2) { left: 47px; top: 0; animation-delay: 0.3s; }
.motion-blocks i:nth-child(3) { right: 0; top: 34px; animation-delay: 0.6s; }

.motion-search-icon {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 48%;
  width: 76px;
  height: 76px;
  border: 8px solid #0099ff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  transform: translate(-50%, -50%);
}

.motion-search-icon::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -19px;
  width: 38px;
  height: 9px;
  border-radius: 999px;
  background: #0099ff;
  transform: rotate(45deg);
}

.motion-search-icon span {
  position: absolute;
  inset: 17px;
  border: 1px solid #dbe9f5;
  border-radius: 50%;
}

.motion-scan-line {
  position: absolute;
  z-index: 4;
  left: calc(50% - 27px);
  top: 105px;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: #52c1ff;
  animation: onboardingScan 2.2s ease-in-out infinite;
}

@keyframes onboardingFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-7px); }
}

@keyframes onboardingPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes onboardingDot {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes onboardingToken {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(4deg); }
}

@keyframes onboardingBlock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes onboardingScan {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(46px); }
}

@media (prefers-reduced-motion: reduce) {
  .simple-visual *,
  .onboarding-slide {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

.onboarding-copy {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 0 4px;
}

.onboarding-copy > span {
  color: #0099ff;
  font-size: 12px;
  line-height: 17px;
  font-weight: 850;
}

.onboarding-copy h2,
.onboarding-copy p {
  margin: 0;
}

.onboarding-copy h2 {
  color: var(--ink);
  font-size: 25px;
  line-height: 32px;
  font-weight: 850;
}

.onboarding-copy p {
  max-width: 330px;
  color: #707888;
  font-size: 13px;
  line-height: 20px;
  font-weight: 650;
}

.onboarding-footer {
  min-height: 116px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding-top: 12px;
}

.onboarding-dots {
  height: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.onboarding-dots button {
  width: 7px;
  height: 7px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: #cbd4e0;
  transition: width 160ms ease, background-color 160ms ease;
}

.onboarding-dots button.active {
  width: 22px;
  background: #0099ff;
}

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

.onboarding-navigation:has(.onboarding-back.hidden) {
  grid-template-columns: 1fr;
}

.onboarding-navigation .primary-btn,
.onboarding-auth-actions .primary-btn,
.onboarding-back,
.onboarding-auth-actions > button:last-child {
  height: 48px;
  border-radius: var(--auth-button-radius);
  font-size: 15px;
  line-height: 20px;
  font-weight: 850;
}

.onboarding-back,
.onboarding-auth-actions > button:last-child {
  color: #687182;
  background: #e5eaf2;
}

.onboarding-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-navigation button:hover,
.onboarding-navigation button:active,
.onboarding-auth-actions button:hover,
.onboarding-auth-actions button:active {
  transform: none;
}

/* Login state after logout */
.phone.login-mode .app-header,
.phone.login-mode .bottom-nav,
.phone.login-mode::after {
  display: none !important;
}

.phone.login-mode .app-scroll {
  min-height: 100vh !important;
  padding: 0 !important;
  background: var(--app-page-bg) !important;
}

.login-screen.active {
  min-height: 100vh;
  display: grid !important;
  padding: 0 12px !important;
  background: var(--app-page-bg);
}

.login-panel {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px 0 28px;
}

.login-brand {
  min-height: 70px;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  padding: 0 4px;
}

.login-brand img {
  width: 171px;
  height: auto;
  display: block;
  margin-left: -16px;
}

.login-brand > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, #2dabff 0%, #0099ff 100%);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.login-brand h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 28px;
  font-weight: 850;
}

.login-brand p {
  margin: 0;
  color: #727888;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.login-card {
  align-self: start;
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.login-tabs {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--control-radius);
  background: #f3f6fb;
}

.login-tabs button {
  border-radius: var(--control-radius);
  color: #727888;
  font-size: 14px;
  line-height: 18px;
  font-weight: 850;
}

.login-tabs button.active {
  color: #0099ff;
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 31, 42, 0.08);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-card label {
  display: grid;
  gap: 6px;
}

.login-card label span {
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--row-radius) !important;
  color: var(--ink);
  background: #f3f6fb;
  font-size: 15px;
  line-height: 20px;
  font-weight: 750;
  outline: 0;
}

.login-options-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.login-options-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.login-options-row input {
  width: 16px;
  height: 16px;
  accent-color: #0099ff;
}

.login-options-row button {
  color: #0099ff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
}

.login-submit-btn {
  height: 48px;
  margin-top: 4px;
  border-radius: var(--control-radius);
  font-size: 16px;
  line-height: 22px;
  font-weight: 850;
}

.auth-submit-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.auth-submit-actions:has(#registerBackBtn:not(.hidden)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-submit-actions .login-submit-btn,
.auth-submit-actions .login-secondary-btn {
  width: 100%;
  margin-top: 0;
}

.login-secondary-btn {
  height: 44px;
  border-radius: var(--control-radius);
  color: #727888;
  background: #eef1f7;
  font-size: 14px;
  line-height: 20px;
  font-weight: 850;
}

.login-submit-btn:hover,
.login-submit-btn:active,
.login-secondary-btn:hover,
.login-secondary-btn:active {
  transform: none;
}

.login-footnote {
  margin: 0;
  padding: 0 6px;
  color: #8a909e;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.login-panel:has(.register-flow:not(.hidden)) {
  align-content: start;
  padding-top: 20px;
  padding-bottom: 28px;
}

.register-flow {
  gap: 14px;
}

.register-progress {
  display: grid;
  grid-template-columns: 28px 1fr 28px 1fr 28px 1fr 28px;
  align-items: center;
  gap: 6px;
  padding: 2px 0 4px;
}

.register-progress span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7a8190;
  background: #edf1f7;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.register-progress span.active {
  color: #fff;
  background: #0099ff;
}

.register-progress span.current {
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.12);
}

.register-progress i {
  height: 2px;
  border-radius: 999px;
  background: #e3e8f1;
}

.register-progress i.active {
  background: #0099ff;
}

.register-step {
  display: none;
  gap: 12px;
}

.register-step.active {
  display: grid;
}

.register-step-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 2px;
}

.register-step-heading b {
  color: var(--ink);
  font-size: 17px;
  line-height: 22px;
  font-weight: 850;
}

.register-step-heading small {
  color: #747b8b;
  font-size: 12px;
  line-height: 17px;
  font-weight: 650;
}

.login-card .register-terms {
  min-height: 44px;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  cursor: pointer;
}

.login-card .register-terms input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid #c9d2df;
  border-radius: 6px !important;
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.login-card .register-terms input::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(0.75);
  transform-origin: center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.login-card .register-terms input:checked {
  border-color: #0099ff;
  background: #0099ff;
}

.login-card .register-terms input:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.login-card .register-terms input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.16);
}

.login-card .register-terms span {
  color: #626a7a;
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
}

.login-card .register-terms:hover,
.login-card .register-terms:active {
  background: #f3f6fb;
  transform: none;
}

.register-wallet-type {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 153, 255, 0.36);
  border-radius: var(--row-radius);
  background: rgba(0, 153, 255, 0.06);
}

.register-wallet-options {
  display: grid;
  gap: 8px;
}

.register-wallet-option {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--row-radius);
  color: var(--ink);
  background: #f3f6fb;
  text-align: left;
}

.register-wallet-option.active {
  border-color: rgba(0, 153, 255, 0.42);
  background: rgba(0, 153, 255, 0.07);
}

.register-wallet-option-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0099ff;
  background: #e5f4ff;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.register-wallet-option.active .register-wallet-option-icon {
  color: #fff;
  background: #0099ff;
}

.register-wallet-option > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.register-wallet-option b {
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 850;
}

.register-wallet-option small {
  color: #747b8b;
  font-size: 11px;
  line-height: 15px;
  font-weight: 650;
}

.register-wallet-option em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #0099ff;
  background: #fff;
  font-size: 10px;
  line-height: 14px;
  font-style: normal;
  font-weight: 850;
}

.register-wallet-option .next-chevron {
  margin-right: 4px;
  transform: rotate(0deg) scale(0.82);
}

.register-wallet-option:hover,
.register-wallet-option:active {
  color: var(--ink);
  background: #f3f6fb;
  transform: none;
}

.register-wallet-option.active:hover,
.register-wallet-option.active:active {
  background: rgba(0, 153, 255, 0.07);
}

.register-wallet-mode-panel {
  display: none;
  gap: 12px;
}

.register-wallet-mode-panel.active {
  display: grid;
}

.login-card .register-wallet-mode-panel select,
.login-card .register-wallet-mode-panel textarea {
  width: 100%;
  border: 0;
  border-radius: var(--row-radius);
  color: var(--ink);
  background: #f3f6fb;
  font-size: 14px;
  line-height: 19px;
  font-weight: 700;
  outline: 0;
}

.login-card .register-wallet-mode-panel select {
  height: 48px;
  padding: 0 34px 0 12px;
}

.login-card .register-wallet-mode-panel textarea {
  min-height: 74px;
  padding: 11px 12px;
  resize: none;
}

.login-card .register-wallet-mode-panel select:focus,
.login-card .register-wallet-mode-panel textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(0, 153, 255, 0.45);
}

.register-wallet-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0099ff;
  position: relative;
}

.register-wallet-mark::before,
.register-wallet-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.register-wallet-mark::before { width: 18px; height: 3px; }
.register-wallet-mark::after { width: 3px; height: 18px; }

.register-wallet-type > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.register-wallet-type b {
  color: var(--ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 850;
}

.register-wallet-type small {
  color: #737a8b;
  font-size: 11px;
  line-height: 15px;
  font-weight: 650;
}

.register-wallet-type em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #0099ff;
  background: #fff;
  font-size: 10px;
  line-height: 14px;
  font-style: normal;
  font-weight: 850;
}

.register-security-note,
.register-demo-note {
  margin: 0;
  color: #737a8b;
  font-size: 11px;
  line-height: 17px;
  font-weight: 650;
}

.mnemonic-warning,
.register-final-note {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--row-radius);
  color: #8d5a18;
  background: #fff6e8;
}

.mnemonic-warning b,
.register-final-note b {
  font-size: 13px;
  line-height: 17px;
  font-weight: 850;
}

.mnemonic-warning span,
.register-final-note span {
  font-size: 11px;
  line-height: 17px;
  font-weight: 650;
}

.mnemonic-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
  overflow: hidden;
}

.mnemonic-grid span {
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border-radius: 6px;
  color: #252c38;
  background: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
  overflow: hidden;
}

.mnemonic-grid span i {
  color: #8b92a0;
  font-size: 9px;
  font-style: normal;
}

.mnemonic-grid.is-covered span {
  color: transparent;
  background: #dfe7f2;
}

.mnemonic-grid.is-covered span i {
  color: transparent;
}

.mnemonic-grid.is-covered::after {
  content: "點擊下方按鈕顯示";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #60697a;
  background: rgba(237, 242, 249, 0.78);
  backdrop-filter: blur(5px);
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.mnemonic-reveal-btn {
  width: 100%;
  height: 42px;
  border-radius: var(--row-radius);
  color: #0099ff;
  background: rgba(0, 153, 255, 0.09);
  font-size: 13px;
  line-height: 18px;
  font-weight: 850;
}

.mnemonic-reveal-btn:hover,
.mnemonic-reveal-btn:active {
  color: #0099ff;
  background: rgba(0, 153, 255, 0.09);
  transform: none;
}

.mnemonic-verify-fields {
  display: grid;
  gap: 10px;
}

.mnemonic-selected-words {
  min-height: 126px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce3ed;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.mnemonic-selected-words > p {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  color: #9299a7;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.mnemonic-selected-words button,
.mnemonic-word-choices button {
  min-width: 0;
  height: 34px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.mnemonic-selected-words button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #1f2937;
  background: #fff;
  text-align: left;
  overflow: hidden;
}

.mnemonic-selected-words button i {
  color: #0099ff;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.mnemonic-word-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.mnemonic-word-choices button {
  padding: 0 6px;
  color: #3f4755;
  background: #edf2f8;
}

.mnemonic-word-choices button.selected,
.mnemonic-word-choices button:disabled {
  color: #9ca3af;
  background: #f5f7fa;
  opacity: 0.58;
}

.mnemonic-selected-words button:hover,
.mnemonic-selected-words button:active {
  color: #1f2937;
  background: #fff;
  transform: none;
}

.mnemonic-word-choices button:hover,
.mnemonic-word-choices button:active {
  color: #3f4755;
  background: #edf2f8;
  transform: none;
}

.mnemonic-verify-actions {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mnemonic-verify-actions span {
  color: #7a8291;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.mnemonic-verify-actions button {
  min-height: 32px;
  padding: 0 4px;
  color: #0099ff;
  background: transparent;
  font-size: 12px;
  line-height: 16px;
  font-weight: 850;
}

.mnemonic-verify-actions button:hover,
.mnemonic-verify-actions button:active {
  color: #0099ff;
  background: transparent;
  transform: none;
}

.login-card .mnemonic-verify-fields label {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.mnemonic-verify-fields select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
  outline: 0;
}

.register-complete {
  justify-items: center;
  text-align: center;
  padding: 20px 8px 10px;
}

.register-success-check {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #69adff;
  box-shadow: 0 0 0 8px rgba(66, 151, 255, 0.2);
}

.register-success-check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 15px;
  border-left: 6px solid #fff;
  border-bottom: 6px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.register-complete > b {
  color: var(--ink);
  font-size: 20px;
  line-height: 26px;
  font-weight: 850;
}

.register-complete p {
  margin: 0;
  max-width: 260px;
  color: #72798a;
  font-size: 12px;
  line-height: 18px;
  font-weight: 650;
}

/* Referral rewards */
.referral-screen.active {
  display: grid !important;
  align-content: start;
  gap: 10px;
  padding: 12px 12px 92px !important;
  background: var(--app-page-bg);
}

.referral-hero-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.referral-hero-card p {
  margin: 0;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.referral-hero-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 28px;
  font-weight: 850;
}

.referral-hero-card small {
  color: #727888;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.referral-code-box {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.referral-code-box span {
  color: #727888;
  font-size: 12px;
  font-weight: 800;
}

.referral-code-box b {
  color: #0099ff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 900;
  text-align: right;
}

.referral-code-box button,
.referral-link-card button {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--control-radius);
  color: #0099ff;
  background: #e8f4ff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 850;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.referral-stat-card {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.referral-stat-card span {
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.referral-stat-card b {
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 850;
}

.referral-link-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.referral-link-card p {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--row-radius);
  color: #727888;
  background: #f3f6fb;
  font-size: 12px;
  line-height: 18px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.referral-link-card .primary-btn {
  width: 100%;
  height: 44px;
  color: #fff;
  background: #0099ff;
}

.referral-rule-card {
  padding: 14px;
}

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

.referral-friend-card {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.referral-friend-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0099ff;
  background: #e8f4ff;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.referral-friend-card h3,
.referral-friend-card p {
  margin: 0;
}

.referral-friend-card h3 {
  color: var(--ink);
  font-size: 14px;
  line-height: 19px;
  font-weight: 850;
}

.referral-friend-card p {
  margin-top: 2px;
  color: #727888;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.referral-friend-card b {
  color: #16a34a;
  font-size: 13px;
  line-height: 18px;
  font-weight: 850;
  text-align: right;
}

.referral-friend-card b.muted-value {
  color: #727888;
}

/* VIP level */
#screen-account .vip-badge {
  min-width: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #655634;
  background: #ede3ce;
  box-shadow: none;
}

#screen-account .vip-badge::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

#screen-account .vip-badge:hover,
#screen-account .vip-badge:active {
  color: #655634;
  background: #ede3ce;
  transform: none;
}

.vip-info-screen.active {
  gap: 10px;
}

.vip-current-card,
.vip-benefit-card,
.vip-tier-card {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.vip-current-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.vip-current-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.vip-level-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #655634;
  background: #ede3ce;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.vip-current-head p,
.vip-current-head h2,
.vip-current-head small,
.vip-progress-note {
  margin: 0;
}

.vip-current-head p {
  color: #777f8f;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
}

.vip-current-head h2 {
  margin: 1px 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 26px;
  font-weight: 850;
}

.vip-current-head small,
.vip-progress-note {
  color: #747c8c;
  font-size: 11px;
  line-height: 16px;
  font-weight: 650;
}

.vip-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #697181;
  font-size: 12px;
  line-height: 16px;
  font-weight: 750;
}

.vip-progress-copy b {
  color: var(--ink);
  font-weight: 850;
}

.vip-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e8edf4;
  overflow: hidden;
}

.vip-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0099ff;
}

.vip-benefit-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.vip-benefit-card > div {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.vip-benefit-card span,
.vip-benefit-card b {
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
}

.vip-benefit-card span { color: #697181; }
.vip-benefit-card b { color: var(--ink); text-align: right; }

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

.vip-tier-card {
  min-height: 68px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
}

.vip-tier-card.active {
  box-shadow: inset 0 0 0 1px rgba(0, 153, 255, 0.34), 0 3px 14px rgba(27, 31, 42, 0.08);
}

.vip-tier-card > span {
  color: #655634;
  font-size: 13px;
  line-height: 18px;
  font-weight: 900;
}

.vip-tier-card > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vip-tier-card b {
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 850;
}

.vip-tier-card small {
  color: #777f8f;
  font-size: 11px;
  line-height: 15px;
  font-weight: 650;
}

.vip-tier-card em {
  color: #7d8493;
  font-size: 10px;
  line-height: 14px;
  font-style: normal;
  font-weight: 750;
}

.vip-tier-card.active em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #0099ff;
  background: #e7f5ff;
}

.vip-rule-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(27, 31, 42, 0.08);
}

.vip-rule-card > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--row-radius);
  background: #f3f6fb;
}

.vip-rule-card > div > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0099ff;
  background: #e5f4ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.vip-rule-card p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.vip-rule-card b {
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 850;
}

.vip-rule-card small {
  color: #747c8c;
  font-size: 11px;
  line-height: 16px;
  font-weight: 650;
}

.vip-note-card {
  margin-top: 2px;
}

/* Unified checkbox system: one visual contract for every square selection control. */
.phone input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1.5px solid #c9d2df !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease !important;
}

.phone input[type="checkbox"]::after {
  content: "" !important;
  position: static !important;
  width: 6px !important;
  height: 10px !important;
  border: 0 !important;
  border-right: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  border-radius: 0 !important;
  opacity: 0 !important;
  transform: translateY(-1px) rotate(45deg) scale(0.75) !important;
  transform-origin: center !important;
  transition: opacity 140ms ease, transform 140ms ease !important;
}

.phone input[type="checkbox"]:checked {
  border-color: #0099ff !important;
  background: #0099ff !important;
}

.phone input[type="checkbox"]:checked::after {
  opacity: 1 !important;
  transform: translateY(-1px) rotate(45deg) scale(1) !important;
}

.phone input[type="checkbox"]:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.16) !important;
}

.phone input[type="checkbox"]:disabled {
  border-color: #d8dee8 !important;
  background: #edf1f6 !important;
  cursor: not-allowed;
}

.phone input[type="checkbox"]:disabled::after {
  border-color: #a7afbd !important;
}

.login-options-row > label,
.auto-renew,
.login-card .register-terms {
  min-height: 44px;
}

.auto-renew:hover,
.auto-renew:active {
  color: #747989;
  background: transparent;
  transform: none;
}
