/* ===== Midnight OS — Apps hub ===== */
.ahub {
  height: 100%; overflow: auto; padding: 30px 28px 36px;
  background:
    radial-gradient(620px 360px at 12% -8%, rgba(110,135,255,0.20), transparent 70%),
    radial-gradient(520px 340px at 100% 0%, rgba(168,100,255,0.13), transparent 70%),
    #090b11;
  -webkit-overflow-scrolling: touch;
}
.ahub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ahub-head h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; color: #f4f6fc; }
.ahub-head span { font-size: 13px; color: #7c869d; }

.asearch {
  width: 100%; height: 42px; margin-bottom: 24px; padding: 0 18px; border-radius: 21px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #eef1f8; font: inherit; font-size: 16px; outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, background .2s;
}
.asearch::placeholder { color: #7c869d; }
.asearch:focus { border-color: rgba(140,165,255,0.55); background: rgba(255,255,255,0.07); }

.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 16px; }

.acard {
  --c: #8eb0ff;
  appearance: none; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 10px 16px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  color: #eef1f8; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s, background .25s;
}
.acard::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 80%;
  background: radial-gradient(closest-side, var(--c), transparent); opacity: 0; transition: opacity .3s; filter: blur(10px);
}
.acard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.14);
  box-shadow: 0 14px 32px -14px var(--c), 0 6px 18px rgba(0,0,0,0.35); }
.acard:hover::before { opacity: 0.22; }
.acard:active { transform: translateY(-1px) scale(0.97); }
.acard:focus-visible { outline: 2px solid rgba(255,255,255,0.65); outline-offset: 2px; }

.alogo {
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 22px; overflow: hidden;
  display: grid; place-items: center; background: #151922;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
}
.alogo b { font-size: 26px; font-weight: 700; color: var(--c); }
.alogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.acard > span { position: relative; z-index: 1; }
.anone { text-align: center; color: #7c869d; font-size: 14px; padding: 36px 0; }
