.bo-collections-grid {
  display: grid;
  gap: 18px;
}

.bo-collections-stats {
  gap: 14px;
}

.bo-collections-stat-card {
  min-height: 0;
  padding: 18px;
}

.bo-collections-stat-value {
  margin-top: 16px;
  font-family: var(--bo-font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.bo-collections-filters {
  display: grid;
  gap: 14px;
}

.bo-collections-filters__row {
  display: grid;
  gap: 14px;
}

.bo-collections-filters__row--search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.bo-collections-filters__row--options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.bo-collections-filters__reset {
  min-width: 148px;
}

.bo-collections-search-field {
  min-width: 0;
}

.bo-collections-search {
  position: relative;
}

.bo-collections-search__input {
  min-height: 58px;
  padding: 0 148px 0 16px;
  border-radius: 20px;
}

.bo-collections-search__scopes {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.bo-collections-search__scope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--bo-line);
  border-radius: 12px;
  background: var(--bo-panel);
  color: var(--bo-muted);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.bo-collections-search__scope:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 124, 250, 0.22);
  background: var(--bo-accent-soft);
  color: var(--bo-accent-strong);
}

.bo-collections-search__scope.is-active {
  border-color: rgba(91, 124, 250, 0.24);
  background: var(--bo-accent-soft);
  color: var(--bo-accent-strong);
}

.bo-collections-search__scope svg {
  width: 16px;
  height: 16px;
}

.bo-collections-search__hash {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.bo-collections-table-card {
  position: relative;
  gap: 16px;
}

.bo-collections-table-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bo-collections-table-bar__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 1181px) {
  .bo-collections-table-bar {
    position: sticky;
    top: var(--bo-desktop-sticky-offset);
    z-index: 6;
    padding-bottom: 14px;
    background: linear-gradient(180deg, var(--bo-panel), var(--bo-panel-soft));
    border-bottom: 1px solid var(--bo-line);
  }

  .bo-collections-table-slot .bo-table-wrap {
    max-height: min(62vh, 780px);
  }
}

.bo-collections-results {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--bo-line);
  background: var(--bo-panel);
  color: var(--bo-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bo-collections-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.bo-collections-toolbar__sort-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--bo-line);
  background: var(--bo-panel);
}

.bo-collections-toolbar__sort-label {
  color: var(--bo-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bo-collections-toolbar__sort {
  min-width: 144px;
  min-height: 38px;
  padding: 0 24px 0 0;
  border: 0;
  background: transparent;
  color: var(--bo-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bo-collections-toolbar__sort:focus {
  outline: none;
}

.bo-collections-amount-cell strong {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  .bo-collections-table-bar {
    flex-direction: column;
  }

  .bo-collections-table-bar__controls,
  .bo-collections-toolbar {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .bo-collections-filters__row--search {
    grid-template-columns: 1fr;
  }

  .bo-collections-search__input {
    padding-right: 16px;
    padding-bottom: 54px;
  }

  .bo-collections-search__scopes {
    left: 12px;
    right: auto;
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .bo-collections-filters__row--options {
    grid-template-columns: 1fr;
  }

  .bo-collections-toolbar__sort-field {
    width: 100%;
  }

  .bo-collections-toolbar__sort {
    min-width: 0;
    width: 100%;
  }
}
