/* Apps hub — catalogue (hero = trame vps.css .hero / .hero-panel) */
@keyframes apps-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}
.hub-side {
  position: sticky; top: 88px;
  padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
}
.hub-side h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: -0.01em;
}
.hub-side button {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 10px 12px; margin: 0 0 5px; border-radius: 12px;
  border: 1px solid transparent; background: transparent;
  color: var(--silver); font: inherit; font-size: 0.88rem; font-weight: 650;
}
.hub-side button:hover, .hub-side button.is-active {
  color: #fff; border-color: rgba(255, 140, 0, 0.45); background: rgba(255, 140, 0, 0.1);
}
.hub-side .cnt {
  min-width: 28px; text-align: center; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: #8da9c4; font-weight: 700; font-size: 0.75rem;
}
.hub-side button.is-active .cnt { background: rgba(255,140,0,.18); color: var(--orange-2); }

.hub-honest {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.apps-search-wrap { margin: 0 0 16px; position: relative; }
.apps-search-wrap input {
  width: 100%; box-sizing: border-box; padding: 14px 14px 14px 42px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 0.95rem;
}
.apps-search-wrap::before {
  content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.05rem; pointer-events: none;
}

.ia-trend {
  margin-top: 4px; padding: 24px 22px 20px; border-radius: 22px;
  border: 1px solid rgba(255, 140, 0, 0.28);
  background:
    radial-gradient(ellipse 70% 60% at 8% 0%, rgba(255, 140, 0, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(22, 34, 51, 0.98), rgba(10, 16, 26, 0.96));
}
.ia-trend .trend-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: end;
  margin-bottom: 10px;
}
.trend-kicker {
  margin: 0 0 4px;
  color: var(--orange-2);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ia-trend h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 700;
  font-stretch: normal;
  font-variation-settings: normal;
  letter-spacing: -0.01em;
}
.ia-trend .sub { margin: 6px 0 0; color: var(--silver); max-width: 40rem; }

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.trend-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  min-height: 168px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 22, 0.72);
  color: #fff;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
  animation: apps-fade-up 0.45s ease-out both;
}
.trend-card:nth-child(1) { animation-delay: 0.05s; }
.trend-card:nth-child(2) { animation-delay: 0.1s; }
.trend-card:nth-child(3) { animation-delay: 0.15s; }
.trend-card:nth-child(4) { animation-delay: 0.2s; }
.trend-card:nth-child(5) { animation-delay: 0.25s; }
.trend-card:hover {
  border-color: rgba(255,140,0,.6);
  transform: translateY(-3px);
  background: rgba(14, 22, 34, 0.9);
  color: #fff;
}
.trend-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.trend-card img {
  width: 72px; height: 72px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.45); object-fit: contain;
  background: #f4f7fb;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  flex-shrink: 0;
  filter: grayscale(0.28);
  opacity: 0.88;
  transition: filter .15s, opacity .15s;
}
.trend-card:hover img {
  filter: grayscale(0.08);
  opacity: 1;
}
.trend-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-family: var(--font);
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.trend-card .blurb {
  margin: 0 0 10px; color: var(--silver); font-size: 0.9rem; line-height: 1.42;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chips span {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(141,169,196,.28); color: var(--silver);
  font-size: 0.72rem; font-weight: 650;
}
.trend-foot {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: auto;
}
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 750;
}
.badge-ok { color: var(--ok); border: 1px solid rgba(61,207,142,.35); }
.badge-soon { color: #0b1420; background: var(--orange-2); }
.badge-byok { color: var(--orange-2); border: 1px solid rgba(255,170,60,.45); }
.badge-prep { color: var(--muted); border: 1px solid rgba(148,163,184,.35); background: rgba(148,163,184,.08); }
.status-legend {
  margin: 0; font-size: 0.8rem; color: var(--silver); line-height: 1.45;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.status-legend .badge { font-size: 0.7rem; padding: 2px 8px; }
.price-pill {
  color: var(--text-strong); font-size: 0.84rem; font-weight: 750;
  padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,140,0,.35);
}
.cta-line { margin-left: auto; color: var(--orange-2); font-size: 0.86rem; font-weight: 750; }

.soon-strip {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
  border: 1px dashed rgba(148,163,184,.35);
  background: rgba(148,163,184,.06);
  color: var(--silver); font-size: 0.88rem; line-height: 1.45;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.soon-strip strong { color: var(--text-strong); }

.catalog-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.cat-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start;
  padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); color: #fff; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: rgba(255,140,0,.55); transform: translateY(-2px); color: #fff; }
.cat-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cat-card img {
  width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16);
  object-fit: contain; background: #f4f7fb;
  flex-shrink: 0;
  filter: grayscale(0.28);
  opacity: 0.88;
  transition: filter .15s, opacity .15s;
}
.cat-card:hover img {
  filter: grayscale(0.08);
  opacity: 1;
}
.cat-card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-family: var(--font);
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: -0.01em;
}
.cat-card p { margin: 0 0 8px; color: var(--silver); font-size: 0.86rem; line-height: 1.4; }

.hub-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.hub-how article { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.hub-how .n {
  display: inline-flex; width: 28px; height: 28px; border-radius: 999px; align-items: center; justify-content: center;
  margin-bottom: 10px; background: rgba(255,140,0,.16); color: var(--orange-2); font-weight: 800; font-size: .82rem;
}
.hub-how h3 { margin: 0 0 6px; font-size: 1.02rem; }
.hub-how p { margin: 0; color: var(--silver); font-size: .88rem; line-height: 1.4; }

.type-block { margin-top: 30px; }
.type-block[hidden], .trend-card[hidden], .cat-card[hidden], .egg[hidden], .soon-strip[hidden] { display: none !important; }
.type-block h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-family: var(--font);
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: -0.01em;
}
.type-block .sub { margin: 0 0 14px; color: var(--silver); }

.eggs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.egg {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 8px;
  padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); color: #fff; text-decoration: none; min-height: 124px;
}
.egg:hover { border-color: rgba(255,140,0,.5); color: #fff; }
.egg-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.egg-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f4f7fb; border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.egg-icon img {
  width: 28px; height: 28px; object-fit: contain;
  filter: grayscale(0.28);
  opacity: 0.88;
}
.egg:hover .egg-icon img {
  filter: grayscale(0.08);
  opacity: 1;
}
.app-chip img {
  filter: grayscale(0.28);
  opacity: 0.88;
}
.egg strong { display: block; font-size: .95rem; line-height: 1.25; }
.egg .desc { color: var(--silver); font-size: .82rem; line-height: 1.35; }
.egg .from { margin-top: auto; color: var(--orange-2); font-size: .82rem; font-weight: 750; }

.promise-strip {
  margin-top: 28px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--panel);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.promise-strip strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.promise-strip span { color: var(--silver); font-size: 0.84rem; line-height: 1.35; }

@media (prefers-reduced-motion: reduce) {
  .trend-card { animation: none; }
}

@media (max-width: 980px) {
  .hub-layout { grid-template-columns: 1fr; }
  .hub-side {
    position: static; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    padding: 12px; margin-bottom: 4px;
  }
  .hub-side h2 { width: 100%; margin: 0 0 4px; }
  .hub-side button { width: auto; margin: 0; }
  .trend-grid, .catalog-grid, .hub-how, .promise-strip { grid-template-columns: 1fr; }
  .eggs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .eggs { grid-template-columns: 1fr; }
  .trend-card { grid-template-columns: 56px 1fr; padding: 16px; min-height: 0; }
  .trend-card img { width: 56px; height: 56px; border-radius: 14px; }
}
