.apps-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 80px;
  padding: 108px 0 72px;
}

.apps-hero h1 {
  margin-bottom: 0;
  font-size: clamp(4.5rem, 9vw, 8.2rem);
}

.apps-hero > p {
  max-width: 430px;
  margin-bottom: 9px;
  color: var(--muted);
}

.apps-hero strong {
  color: var(--text);
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 23px 0;
  border-block: 1px solid var(--line);
}

.search-box,
.sort-box {
  display: flex;
  align-items: center;
  min-height: 54px;
  background: rgba(8, 17, 10, .72);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.filter-cluster {
  display: flex;
  gap: 10px;
}

.search-box:focus-within,
.sort-box:focus-within {
  border-color: rgba(53, 238, 56, .55);
  box-shadow: 0 0 0 3px rgba(53, 238, 56, .06);
}

.search-box > span {
  padding-left: 18px;
  color: var(--green);
  font-size: 1.35rem;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0 15px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
}

.search-box input::placeholder {
  color: #59615b;
}

.search-box kbd {
  margin-right: 13px;
  padding: 4px 8px;
  background: #0c170e;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #68716a;
  font: .62rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sort-box {
  gap: 11px;
  padding: 0 14px 0 17px;
  color: #667068;
  font: .67rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sort-box select {
  min-width: 158px;
  padding: 9px 30px 9px 10px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: 700 .78rem Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-shell::after {
  position: absolute;
  right: 9px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.sort-box option {
  background: #071009;
  color: var(--text);
  font-weight: 650;
}

.pricing-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  background: rgba(8, 17, 10, .42);
  border: 1px dashed rgba(147, 174, 150, .13);
  border-radius: 9px;
  color: #505a52;
  cursor: not-allowed;
  font: .67rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  user-select: none;
}

.pricing-box strong {
  color: #7c857e;
  font: 700 .76rem Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.pricing-box .lock {
  color: #465047;
  font-size: .45rem;
}

.apps-section {
  min-height: 520px;
  padding: 36px 0 120px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 25px;
  color: #667068;
  font: .68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.results-header p {
  margin: 0;
}

.results-header strong {
  color: var(--green);
}

.results-header button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--green-soft);
  font: inherit;
  cursor: pointer;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 19px;
  min-height: 178px;
  padding: 23px;
  background: rgba(7, 16, 9, .72);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color .16s, transform .16s;
}

.app-card:hover {
  border-color: rgba(53, 238, 56, .35);
  transform: translateY(-3px);
}

.app-card img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  background: #0c180e;
  border-radius: 13px;
}

.app-card h2 {
  margin: 1px 0 2px;
  font-size: 1.08rem;
  letter-spacing: -.025em;
}

.app-publisher,
.app-description,
.app-date {
  color: var(--muted);
  font-size: .76rem;
}

.app-description {
  grid-column: 1 / -1;
  margin: 0;
}

.app-date {
  position: absolute;
  right: 20px;
  bottom: 17px;
  font: .58rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.empty-state {
  display:grid;
  justify-items:center;
  max-width:620px;
  margin:70px auto 0;
  padding:62px 30px;
  background:radial-gradient(circle at 50% 0,rgba(36,154,40,.1),transparent 62%);
  border:1px solid var(--line);
  border-radius:18px;
  text-align:center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state img {
  width:68px;
  height:68px;
  margin-bottom:26px;
  object-fit:contain;
  filter:drop-shadow(0 0 18px rgba(53,238,56,.22));
}

.empty-state h2 {
  margin-bottom:10px;
  font-size:clamp(1.8rem,4vw,2.7rem);
  letter-spacing:-.045em;
}

.empty-state > p:not(.section-label) {
  max-width:430px;
  margin-bottom:26px;
  color:var(--muted);
}

@media (max-width: 860px) {
  .apps-hero { grid-template-columns: 1fr; gap: 32px; }
  .apps-hero > p { max-width: 620px; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tools { grid-template-columns: 1fr; }
  .filter-cluster { justify-content: stretch; }
  .sort-box, .pricing-box { flex: 1; }
  .sort-box { justify-content: space-between; }
}

@media (max-width: 600px) {
  .apps-hero { padding-top: 75px; }
  .apps-hero h1 { font-size: 4rem; }
  .catalog-tools { grid-template-columns: 1fr; }
  .filter-cluster { flex-direction: column; }
  .search-box kbd { display:none; }
  .apps-grid { grid-template-columns: 1fr; }
  .sort-box { justify-content:space-between; }
  .pricing-box { justify-content:space-between; }
}
