.home-top-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
}

.home-title {
  justify-self: start;
  font-size: 18px;
}

.kyc-banner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #f4f4f4;
  color: #111111;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.kyc-banner:hover {
  background: #eeeeee;
  transform: translateY(-1px);
}

.kyc-banner > svg:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: #e7e7e7;
  color: #777777;
}

.kyc-banner strong {
  display: block;
  margin-bottom: 5px;
  color: #111111;
  font-size: 15px;
  font-weight: 900;
}

.kyc-banner p {
  margin: 0;
  color: #555555;
  font-size: 13px;
  line-height: 1.45;
}

.kyc-banner > svg:last-child {
  width: 18px;
  height: 18px;
  color: #999999;
}

.exchange-hero {
  position: relative;
  min-height: 132px;
  padding-top: 22px;
}

.exchange-hero .spark-card {
  display: none;
}

.exchange-hero:has(.guest-auth-card:not([hidden])) {
  min-height: 188px;
}

.guest-auth-card {
  display: grid;
  gap: 12px;
  max-width: 300px;
  padding-top: 4px;
}

.guest-auth-card strong {
  font-size: 26px;
  line-height: 1.15;
}

.guest-auth-card p {
  margin: 0;
  color: #767676;
  font-size: 13px;
  line-height: 1.5;
}

.guest-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 268px;
}

.guest-auth-actions a {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}

.exchange-hero .asset-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.balance-visibility-toggle {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #777777;
}

.balance-visibility-toggle svg {
  width: 15px;
  height: 15px;
}

.btc-total {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  white-space: nowrap;
}

.btc-total strong {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(32px, 9vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

.btc-total span {
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 800;
}

.mini-profit {
  margin-top: 14px;
  color: #777777;
  font-size: 14px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 6px 0 22px;
}

.hero-action-pill {
  min-height: 48px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(31, 122, 22, 0.14);
}

.hero-action-pill.is-alt {
  background: #111111;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16);
}

.promo-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border-radius: 10px;
  background: #f4f4f4;
  transition: opacity 180ms ease, transform 180ms ease;
}

.promo-card.is-clickable {
  cursor: pointer;
}

.promo-card i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e7e7e7;
  color: #b7b7b7;
  font-size: 30px;
  font-style: normal;
  font-weight: 900;
}

.promo-card strong {
  display: block;
  margin-bottom: 5px;
  color: #777777;
  font-size: 14px;
}

.promo-card span {
  color: #111111;
  font-size: 13px;
  line-height: 1.45;
}

.market-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0;
}

.market-tabs {
  margin: 24px 0 18px;
}

.market-tabs button {
  flex: 0 0 auto;
  border: 0;
  padding: 7px 10px;
  border-radius: 16px;
  background: transparent;
  color: #666666;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.market-tabs button.active {
  background: #f1f1f1;
  color: #111111;
}

.pair-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pair-row {
  display: grid;
  grid-template-columns: 1fr 88px 64px;
  gap: 10px;
  align-items: center;
}

.pair-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.pair-name strong {
  font-size: 15px;
}

.pair-name small,
.pair-price small {
  display: block;
  margin-top: 4px;
  color: #8a8a8a;
  font-size: 11px;
}

.pair-price {
  text-align: right;
}

.pair-price strong {
  font-size: 14px;
}

.change-badge {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 4px;
  background: #30a866;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.change-badge.down {
  background: #e85d6a;
}

.view-more {
  display: grid;
  place-items: center;
  min-height: 46px;
  margin: 24px 0 28px;
  border-radius: 23px;
  background: #f1f1f1;
  color: #111111;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.market-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.market-info-card {
  min-height: 72px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #f6f6f6;
}

.market-info-card span {
  display: block;
  color: #8a8a8a;
  font-size: 12px;
}

.market-info-card strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 17px;
}

.news-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: #333333;
  font-size: 13px;
  text-decoration: none;
}

.announcement-list {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.announcement-list a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.announcement-list article h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.45;
}

.announcement-list article time {
  color: #999999;
  font-size: 12px;
}

.announcement-page-list {
  margin-top: 24px;
}

.announcement-detail {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: #f7f7f7;
}

.announcement-detail h2 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.35;
}

.announcement-detail time {
  color: #8a8a8a;
  font-size: 13px;
}

.announcement-detail p {
  margin: 20px 0 0;
  color: #333333;
  line-height: 1.75;
}

.home-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-popup.open {
  pointer-events: auto;
  opacity: 1;
}

.home-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.46);
}

.home-popup-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.22);
}

.home-popup-close {
  justify-self: end;
}

.home-popup-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: #f1f1f1;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
}

.home-popup-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.home-popup-panel p {
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
}

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

.home-popup-actions a,
.home-popup-actions button {
  width: 100%;
  text-decoration: none;
}
