.discover-page {
  background: #ffffff;
}

.discover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 12px;
}

.discover-title {
  font-size: 22px;
  min-width: 0;
}

.discover-search-wrap {
  margin: 16px 0 14px;
}

.discover-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  background: #f5f5f5;
}

.discover-search svg {
  width: 18px;
  height: 18px;
  color: #888888;
}

.discover-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111111;
}

.discover-tabs,
.discover-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.discover-tabs {
  margin-bottom: 10px;
}

.discover-sort-tabs {
  margin-bottom: 16px;
}

.discover-tabs button,
.discover-sort-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 17px;
  background: #f2f2f2;
  color: #666666;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.discover-tabs button.active,
.discover-sort-tabs button.active {
  background: #111111;
  color: #ffffff;
}

.discover-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.discover-summary strong {
  font-size: 14px;
}

.discover-summary span {
  max-width: 220px;
  color: #888888;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.discover-list {
  display: grid;
  gap: 10px;
}

.discover-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #f7f7f7;
  color: inherit;
  text-decoration: none;
}

.discover-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, auto);
  align-items: center;
  gap: 12px;
}

.discover-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
}

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

.discover-main .coin-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.discover-main > div {
  min-width: 0;
}

.discover-main strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-main small {
  display: block;
  margin-top: 4px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.discover-price {
  text-align: right;
  min-width: 94px;
  max-width: 132px;
}

.discover-price strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-price small {
  display: block;
  margin-top: 4px;
  color: #8a8a8a;
  font-size: 12px;
}

.discover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-height: 54px;
  overflow: hidden;
}

.discover-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: #ffffff;
  color: #555555;
  font-size: 11px;
  font-weight: 800;
}

.discover-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  min-height: 34px;
  border-radius: 8px;
  background: #30a866;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 360px) {
  .discover-search {
    min-height: 46px;
    padding: 0 12px;
  }

  .discover-tabs,
  .discover-sort-tabs {
    gap: 7px;
  }

  .discover-tabs button,
  .discover-sort-tabs button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .discover-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .discover-summary span {
    max-width: none;
    text-align: left;
  }

  .discover-card {
    padding: 14px;
  }

  .discover-main .coin-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .discover-card-top,
  .discover-card-bottom {
    grid-template-columns: 1fr;
  }

  .discover-price {
    text-align: left;
    max-width: 100%;
  }

  .discover-change {
    justify-self: start;
  }
}

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

/* 2026 UI refresh */
.discover-page {
  background: transparent;
}

.discover-search {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.discover-search input {
  color: var(--text);
}

.discover-tabs,
.discover-sort-tabs {
  gap: 9px;
}

.discover-tabs button,
.discover-sort-tabs button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
}

.discover-tabs button.active,
.discover-sort-tabs button.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.discover-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.discover-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.discover-main small,
.discover-price small,
.discover-summary span {
  color: var(--muted);
}

.discover-tags span {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.discover-change {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.discover-change.down {
  background: linear-gradient(135deg, #ef476f, #f97316);
}

/* Tech blue refinement */
.discover-tabs button.active,
.discover-sort-tabs button.active {
  border-color: #1b65d8;
  background: #1b65d8;
  box-shadow: 0 10px 20px rgba(36, 124, 255, 0.14);
}

.discover-tags span {
  border-color: #cfe5ff;
  background: #edf7ff;
  color: #1b65d8;
}

.discover-change {
  background: linear-gradient(135deg, #247cff, #54b8ff);
}

.discover-change.down {
  background: linear-gradient(135deg, #ef476f, #ff7895);
}

/* Oh bits discover mockup */
.discover-page {
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

.discover-header {
  display: grid;
  grid-template-columns: 44px 1fr 42px 42px;
  min-height: 58px;
}

.discover-brand-mark {
  width: 34px;
  height: 34px;
}

.discover-title {
  justify-self: center;
  color: var(--text);
  font-size: 24px;
}

.discover-search-wrap {
  margin: 18px 0 18px;
}

.discover-search {
  min-height: 58px;
  border-color: #303741;
  border-radius: 18px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
  box-shadow: none;
}

.discover-search input {
  color: var(--text);
  font-size: 18px;
}

.discover-tabs {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 12px;
  margin: 0 -4px 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1d232b;
}

.discover-tabs button {
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
}

.discover-tabs button.active {
  border-color: transparent transparent var(--brand);
  background: transparent;
  color: var(--brand);
  box-shadow: none;
}

.discover-sort-tabs,
.discover-summary {
  display: none;
}

.featured-market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  min-height: 170px;
  margin-bottom: 12px;
  padding: 20px 18px;
  border: 1px solid rgba(247, 167, 7, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.96), rgba(10, 15, 21, 0.98));
}

.featured-market-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-market-head strong {
  color: var(--text);
  font-size: 20px;
}

.featured-market-head em,
.discover-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(247, 167, 7, 0.42);
  border-radius: 8px;
  color: var(--brand);
  font-style: normal;
  font-size: 12px;
}

.featured-market-card b {
  display: block;
  margin-top: 24px;
  color: var(--text);
  font-size: 34px;
}

.featured-market-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.featured-market-card p span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-right: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(34, 199, 97, 0.55);
  color: #ffffff;
  font-weight: 800;
}

.mini-chart {
  align-self: end;
  height: 86px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(34, 199, 97, 0.34), transparent),
    linear-gradient(135deg, transparent 10%, transparent 15%, #35d875 16% 18%, transparent 19% 28%, #35d875 29% 31%, transparent 32% 42%, #35d875 43% 45%, transparent 46% 58%, #35d875 59% 61%, transparent 62%);
  opacity: 0.9;
}

.discover-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.discover-card {
  min-height: 150px;
  padding: 16px 14px;
  border-color: rgba(247, 167, 7, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
  box-shadow: none;
}

.discover-card-top,
.discover-card-bottom {
  display: block;
}

.discover-main {
  gap: 10px;
}

.discover-main .coin-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 0;
}

.discover-main strong {
  color: var(--text);
  font-size: 17px;
}

.discover-main small,
.discover-price small {
  display: none;
}

.discover-price {
  margin-top: 22px;
  text-align: left;
}

.discover-price strong {
  color: var(--text);
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 24px;
}

.discover-tags {
  position: absolute;
  right: 14px;
  top: 18px;
}

.discover-card {
  position: relative;
}

.discover-tags span:not(:first-child) {
  display: none;
}

.discover-change {
  width: auto;
  justify-content: flex-start;
  min-height: auto;
  margin-top: 18px;
  background: transparent;
  color: var(--green-2);
  font-size: 15px;
}

.discover-change.down {
  background: transparent;
  color: var(--red);
}

@media (max-width: 380px) {
  .discover-tabs {
    gap: 6px;
  }

  .discover-tabs button {
    font-size: 14px;
  }

  .featured-market-card {
    grid-template-columns: 1fr;
  }
}

/* Discover sample alignment */
.discover-page {
  padding: 22px 18px calc(112px + env(safe-area-inset-bottom));
  background: transparent;
}

.discover-header {
  display: grid;
  grid-template-columns: 58px 1fr 48px 48px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
}

.discover-brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.discover-title {
  justify-self: center;
  color: var(--text);
  font-size: clamp(28px, 7.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
}

.discover-header .icon-button {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.discover-header .icon-button svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.discover-search-wrap {
  margin: 22px 0 28px;
}

.discover-search {
  min-height: 66px;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid rgba(143, 151, 166, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 27, 37, 0.96), rgba(9, 14, 21, 0.98));
}

.discover-search svg {
  width: 31px;
  height: 31px;
  color: #a8adb7;
}

.discover-search input {
  color: var(--text);
  font-size: clamp(20px, 5.2vw, 26px);
  font-weight: 500;
}

.discover-search input::placeholder {
  color: #969ca8;
}

.discover-tabs {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 12px;
  margin: 0 -2px 30px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(50, 56, 68, 0.58);
}

.discover-tabs button {
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: clamp(17px, 4.4vw, 22px);
  font-weight: 900;
}

.discover-tabs button.active {
  border-color: transparent transparent var(--brand);
  background: transparent;
  color: var(--brand);
  box-shadow: none;
}

.discover-sort-tabs,
.discover-summary {
  display: none;
}

.featured-market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 43%);
  align-items: center;
  gap: 12px;
  min-height: 236px;
  margin-bottom: 18px;
  padding: 28px 28px 26px;
  border: 1px solid rgba(247, 167, 7, 0.76);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 46%, rgba(36, 198, 114, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 33, 0.97), rgba(9, 14, 21, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.featured-market-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.featured-market-head .coin-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 0;
  box-shadow: 0 0 26px rgba(255, 174, 17, 0.2);
}

.featured-market-head strong {
  color: var(--text);
  font-size: clamp(26px, 6.4vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.featured-market-head em {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(247, 167, 7, 0.7);
  border-radius: 8px;
  color: var(--brand);
  font-size: clamp(14px, 3.7vw, 18px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
}

.featured-market-card b {
  display: block;
  margin-top: 34px;
  color: var(--text);
  font-size: clamp(44px, 12.2vw, 60px);
  font-weight: 900;
  line-height: 1;
}

.featured-market-card p {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 700;
}

.featured-market-card p span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(34, 165, 96, 0.92), rgba(19, 107, 68, 0.92));
  color: #ffffff;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
}

.featured-chart {
  display: block;
  width: 100%;
  min-height: 154px;
}

.featured-chart svg {
  width: 100%;
  height: 154px;
  overflow: visible;
}

.featured-chart-fill {
  fill: url(#discoverFeaturedFill);
}

.featured-chart-line {
  fill: none;
  stroke: #36d27a;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-chart-dot {
  fill: #36d27a;
}

.discover-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.discover-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 252px;
  padding: 24px 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(247, 167, 7, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 78%, rgba(54, 210, 122, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 33, 0.97), rgba(9, 14, 21, 0.98));
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
}

.discover-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

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

.discover-main .coin-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 0;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.26);
}

.discover-main strong {
  color: var(--text);
  font-size: clamp(19px, 4.7vw, 28px);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.discover-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: 78px;
  padding: 0 10px;
  border: 1px solid rgba(143, 151, 166, 0.38);
  border-radius: 7px;
  color: #c4c8d0;
  font-size: clamp(13px, 3.3vw, 18px);
  line-height: 1;
  white-space: nowrap;
}

.discover-card-price {
  display: block;
  margin-top: 38px;
  color: var(--text);
  font-size: clamp(32px, 7.7vw, 46px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.discover-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, 42%);
  align-items: end;
  gap: 10px;
  margin-top: 28px;
}

.discover-change {
  display: inline;
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--green-2);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  line-height: 1.15;
}

.discover-change.down {
  background: transparent;
  color: #ff4d57;
}

.discover-change-label {
  display: inline-block;
  margin-left: 12px;
  color: var(--muted);
  font-size: clamp(15px, 3.8vw, 19px);
  font-weight: 700;
  white-space: nowrap;
}

.discover-card-chart {
  display: block;
  min-height: 82px;
  border-radius: 12px;
  opacity: 0.96;
  background:
    linear-gradient(180deg, rgba(54, 210, 122, 0.28), rgba(54, 210, 122, 0)),
    linear-gradient(160deg, transparent 0 18%, #36d27a 18% 21%, transparent 21% 30%, #36d27a 30% 33%, transparent 33% 43%, #36d27a 43% 46%, transparent 46% 57%, #36d27a 57% 60%, transparent 60%);
}

.discover-card-chart.down {
  background:
    linear-gradient(180deg, rgba(255, 77, 87, 0.24), rgba(255, 77, 87, 0)),
    linear-gradient(20deg, transparent 0 18%, #ff4d57 18% 21%, transparent 21% 30%, #ff4d57 30% 33%, transparent 33% 43%, #ff4d57 43% 46%, transparent 46% 57%, #ff4d57 57% 60%, transparent 60%);
}

.discover-price,
.discover-tags,
.discover-main small {
  display: none;
}

@media (max-width: 390px) {
  .discover-page {
    padding-inline: 16px;
  }

  .discover-header {
    grid-template-columns: 50px 1fr 42px 42px;
  }

  .discover-brand-mark {
    width: 42px;
    height: 42px;
  }

  .discover-search {
    min-height: 58px;
    padding: 0 16px;
  }

  .featured-market-card {
    grid-template-columns: 1fr minmax(92px, 38%);
    min-height: 180px;
    padding: 20px 16px;
  }

  .featured-market-head {
    gap: 10px;
  }

  .featured-market-head .coin-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .featured-market-head em {
    min-height: 32px;
    padding: 0 8px;
  }

  .featured-chart,
  .featured-chart svg {
    min-height: 102px;
    height: 102px;
  }

  .discover-list {
    gap: 12px;
  }

  .discover-card {
    min-height: 190px;
    padding: 16px 14px;
  }

  .discover-main {
    gap: 8px;
  }

  .discover-main .coin-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .discover-badge {
    max-width: 66px;
    min-height: 28px;
    padding: 0 7px;
  }

  .discover-card-price {
    margin-top: 26px;
  }

  .discover-card-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .discover-card-chart {
    min-height: 54px;
  }
}

/* Discover compact market layout */
.discover-page {
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
  background: transparent;
}

.discover-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}

.discover-brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.discover-title {
  justify-self: center;
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.discover-header .icon-button {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.discover-header .icon-button svg {
  width: 30px;
  height: 30px;
}

.discover-search-wrap {
  margin: 16px 0 16px;
}

.discover-search {
  min-height: 54px;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  box-shadow: none;
}

.discover-search svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--muted);
}

.discover-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.discover-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.discover-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 -16px 16px;
  padding: 0 16px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 0;
}

.discover-tabs::-webkit-scrollbar {
  display: none;
}

.discover-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.discover-tabs button.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  box-shadow: none;
}

.discover-sort-tabs,
.discover-summary {
  display: none;
}

.featured-market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 30%);
  align-items: center;
  gap: 10px;
  min-height: 176px;
  max-height: 190px;
  margin: 0 0 14px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 56%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 48%, color-mix(in srgb, var(--green-2) 10%, transparent), transparent 34%),
    linear-gradient(180deg, var(--card), var(--card-soft));
  box-shadow: none;
}

.featured-market-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.featured-market-head .coin-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  box-shadow: none;
}

.featured-market-head strong {
  min-width: 0;
  margin-right: 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.featured-market-head em {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 62%, var(--line));
  border-radius: 8px;
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.featured-market-card b {
  display: block;
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(34px, 9.3vw, 42px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.featured-market-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.featured-market-card p span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--green);
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.featured-market-card p small {
  color: var(--muted);
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.featured-chart {
  display: block;
  width: 100%;
  min-height: 86px;
  color: var(--green-2);
}

.featured-chart svg {
  width: 100%;
  height: 86px;
  overflow: visible;
}

.featured-chart-fill {
  fill: currentColor;
  opacity: 0.16;
}

.featured-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-chart-dot {
  fill: currentColor;
}

.discover-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.discover-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(88px, auto);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  color: var(--text);
  text-decoration: none;
}

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

.discover-market-main .coin-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  box-shadow: none;
}

.discover-market-name {
  min-width: 0;
}

.discover-market-name strong,
.discover-market-name small,
.discover-market-quote strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-market-name strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.discover-market-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.discover-market-quote {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
}

.discover-market-quote strong {
  max-width: 118px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.discover-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 70px;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--green);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.discover-change.down {
  background: var(--red);
  color: var(--text);
}

@media (max-width: 380px) {
  .discover-page {
    padding-inline: 14px;
  }

  .discover-header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .discover-brand-mark {
    width: 38px;
    height: 38px;
  }

  .discover-title {
    font-size: 24px;
  }

  .discover-search {
    padding-inline: 14px;
  }

  .featured-market-card {
    grid-template-columns: minmax(0, 1fr) 76px;
    min-height: 170px;
    padding: 16px 14px;
  }

  .featured-market-head {
    gap: 10px;
  }

  .featured-market-head .coin-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .featured-market-head em {
    padding-inline: 8px;
  }

  .featured-chart,
  .featured-chart svg {
    min-height: 72px;
    height: 72px;
  }

  .discover-market-row {
    grid-template-columns: minmax(0, 1fr) 58px minmax(82px, auto);
    gap: 8px;
    padding-inline: 10px;
  }

  .discover-market-main .coin-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .discover-market-quote strong {
    max-width: 96px;
    font-size: 15px;
  }

  .discover-change {
    min-width: 64px;
    font-size: 12px;
  }
}

/* Remove compact row sparklines and keep quote data readable. */
.discover-market-row {
  grid-template-columns: minmax(0, 1fr) minmax(98px, auto);
}

.discover-market-quote {
  align-self: stretch;
  align-content: center;
}

@media (max-width: 380px) {
  .discover-market-row {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
  }
}
