/* Clean options page layout. The values follow one compact mobile scale. */
body.seconds-mode {
  background: #f4f6fb;
  padding-bottom: 74px;
  overflow-x: hidden;
}

body.seconds-mode .topbar,
body.seconds-mode .bottom-nav {
  display: none !important;
}

body.seconds-mode main {
  max-width: 728px;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}

.seconds-page {
  max-width: 728px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #6f7884;
  overflow-x: hidden;
}

.seconds-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.seconds-header .back-button {
  position: absolute;
  left: 15px;
  top: 17px;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: #f6f7fb url("assets/back-button-user-reference.png?v=20260830-3") center / 46px 40px no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

.seconds-header select {
  width: min(330px, 72vw);
  max-width: 330px;
  padding: 0 30px;
  border: 0;
  background: transparent;
  appearance: none;
  color: #707985;
  text-align: center;
  text-align-last: center;
  font-size: 30px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seconds-stat-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 33.5%) minmax(0, 66.5%);
  min-height: 174px;
  margin: 8px 15px 45px;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.seconds-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 42px;
  width: 4px;
  height: 88px;
  background: #3f9a61;
}

.seconds-stat-card::after {
  content: "";
  position: absolute;
  left: 33.5%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #edf0f4;
}

.seconds-main-price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0 8px 0 27px;
}

.seconds-main-price strong {
  min-width: 0;
  overflow: hidden;
  color: #3f8e5c;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seconds-main-price span {
  margin-top: 9px;
  font-size: 20px;
  font-weight: 800;
}

.seconds-stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: center;
  gap: 10px 36px;
  min-width: 0;
  padding: 20px 28px 20px 72px;
}

.seconds-stats-grid::before {
  content: "";
  position: absolute;
  left: 0;
  top: 62px;
  width: 20px;
  height: 20px;
  border-right: 1px solid #edf0f4;
  border-top: 1px solid #edf0f4;
  background: #fff;
  transform: translateX(-10px) rotate(45deg);
}

.seconds-stats-grid span,
.seconds-stats-grid strong {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seconds-stats-grid span {
  color: #737d88;
  font-size: 14px;
  line-height: 1.42;
}

.seconds-stats-grid strong {
  display: block;
  color: #717a85;
  font-size: 17px;
  font-weight: 500;
}

.seconds-trend-tabs {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 0 7px 9px;
  color: #050609;
  font-size: 24px;
  line-height: 1.5;
  white-space: nowrap;
}

.seconds-trend-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 9px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.seconds-trend-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 5px;
  border-radius: 5px;
  background: #4aa371;
  transform: translateX(-50%);
}

.seconds-kline {
  height: 303px;
  margin: 0 0 90px;
  background: #fff;
  overflow: hidden;
}

.seconds-kline svg {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
  touch-action: none;
}

.seconds-orders {
  min-height: 120px;
  margin: 0;
  padding: 0 20px 24px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.seconds-orders h2 {
  margin: 0 0 34px;
  color: #707985;
  font-size: 23px;
  font-weight: 500;
  text-align: center;
}

.seconds-orders h2::before,
.seconds-orders h2::after {
  content: "";
  display: inline-block;
  width: 64px;
  height: 1px;
  margin: 0 11px;
  background: #7d858e;
  vertical-align: middle;
}

.seconds-orders .seconds-empty-figure {
  display: none;
}

.seconds-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eef1f3;
  background: transparent;
}

.seconds-order small {
  display: block;
  margin-top: 4px;
  color: #939ca7;
  font-size: 12px;
}

.seconds-order > div:last-child {
  text-align: right;
}

.seconds-order.active > div:last-child strong,
.seconds-order.WIN > div:last-child strong {
  color: #299553;
}

.seconds-order.LOSE > div:last-child strong {
  color: #ef3f46;
}

.seconds-bottom-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: 728px;
  margin: 0 auto;
  padding: 9px 15px;
  background: #fff;
}

.seconds-bottom-actions button {
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.seconds-bottom-actions button:first-child {
  background: #77808a;
}

.seconds-bottom-actions button:nth-child(2) {
  background: #d2454f;
}

.seconds-bottom-actions button:nth-child(3) {
  background: #3d8c58;
}

@media (max-width: 430px) {
  .seconds-header {
    height: 88px;
  }

  .seconds-header .back-button {
    left: 16px;
    top: 14px;
    width: 42px;
    height: 42px;
  }

  .seconds-header select {
    width: min(280px, 72vw);
    font-size: 27px;
  }

  .seconds-stat-card {
    grid-template-columns: minmax(0, 33.5%) minmax(0, 66.5%);
    min-height: 156px;
    margin: 8px 16px 34px;
  }

  .seconds-stat-card::before {
    top: 38px;
    height: 80px;
  }

  .seconds-main-price {
    padding-left: 22px;
  }

  .seconds-main-price strong {
    font-size: 24px;
  }

  .seconds-main-price span {
    margin-top: 6px;
    font-size: 19px;
  }

  .seconds-stats-grid {
    gap: 8px 10px;
    padding: 18px 12px 18px 36px;
  }

  .seconds-stats-grid::before {
    top: 55px;
  }

  .seconds-stats-grid span {
    font-size: 12px;
  }

  .seconds-stats-grid strong {
    font-size: 15px;
  }

  .seconds-trend-tabs {
    gap: 20px;
    margin-left: 8px;
    font-size: 22px;
  }

  .seconds-kline {
    height: 286px;
    margin-bottom: 64px;
  }

  .seconds-orders {
    min-height: 100px;
    padding-inline: 16px;
  }

  .seconds-orders h2 {
    margin-bottom: 24px;
    font-size: 21px;
  }

  .seconds-orders h2::before,
  .seconds-orders h2::after {
    width: 48px;
    margin-inline: 8px;
  }

  .seconds-bottom-actions {
    gap: 28px;
    padding-inline: 16px;
  }

  .seconds-bottom-actions button {
    height: 50px;
    font-size: 22px;
  }
}

/* Keep the holdings heading above the fixed action bar on short screens. */
@media (min-width: 431px) and (max-height: 870px) {
  .seconds-kline {
    margin-bottom: 60px;
  }
}
.back-button,
.seconds-header .back-button,
.payout-page-head .back-button,
.about-page .profile-subpage-head .back-button,
.profile-subpage-head .back-button{
  width:42px!important;
  height:42px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#f6f7fb url("assets/back-button-user-reference.png?v=20260830-3") center/100% 100% no-repeat!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  box-shadow:none!important;
}
.back-button::before,
.back-button::after{display:none!important}
