.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;
  }
}
