/* ===== COVER (banner) ===== */
.cover {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: #0d0d0d;
  background-position: center;
  background-size: cover;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .12), rgba(0, 0, 0, .68));
  box-shadow: inset 0 -40px 50px rgba(0, 0, 0, .6);
}

/* ===== STRIP PROFIL (logo + judul + tombol) ===== */
.profile {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  max-width: 980px;
  margin: -60px auto 0;
  padding: 0 16px 10px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  outline: 3px solid rgba(0, 0, 0, .35);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 4px;
  padding-bottom: 4px;
}
.titles h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.titles .sub {
  font-size: 14px;
  opacity: .85;
}

/* Tombol + ikon */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .15);
}
.badge-btn img {
  display: block;
  height: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition: background .15s, transform .1s;
}
.btn:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

.btn-primary {
  background: #4f46e5;
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  filter: brightness(1.08);
}

.btn .icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  line-height: 0;
}
.btn .icon svg {
  display: block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.btn .label {
  line-height: 1;
}

/* ===== CONTAINER & GRID KONTEN ===== */
.appv {
  max-width: 980px;
  margin: 16px auto;
  padding: 0 16px;
}
.appv .grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
}

/* meta ringkas */
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.meta div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
}
.meta small {
  display: block;
  font-size: 12px;
  opacity: .7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  opacity: .9;
}

/* versi + link store */
.sv {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sv-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}
.sv-row .plat {
  justify-self: start;
  min-width: 0;
  font-weight: 600;
}
.sv-row .ver {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ===== RELATED APPS ===== */
.related-section {
  max-width: 980px;
  margin: 28px auto 48px;
  padding: 0 16px;
}
.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.related-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.related-title {
  font-size: 18px;
  font-weight: 700;
}
.related-header small {
  font-size: 12px;
  opacity: .7;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 10, 20, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .45);
  text-decoration: none;
  color: inherit;
  transition: .15s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .55);
}

.related-card img.main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.related-card img.icon {
  position: absolute;
  left: 14px;
  bottom: -26px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  object-fit: cover;
  background: #020617;
}

.related-body {
  padding: 32px 14px 14px;
}
.related-body h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.related-body p {
  margin-top: 4px;
  min-height: 38px;
  font-size: 13px;
  color: #cbd5f5;
}

.related-badges {
  position: absolute;
  inset-inline: 0;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.related-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(15, 23, 42, .9);
  color: #e5e7eb;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.rel-btn:hover {
  background: rgba(30, 64, 175, .9);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .5);
  transform: translateY(-1px);
}
.rel-btn:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ===== HOME: Filter tombol ===== */
.filter[data-on="true"] {
  background-color: rgba(125, 116, 255, .3);
  border-color: rgba(255, 255, 255, .8);
}

/* ===== HOME: Hero carousel ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: auto;              /* <-- jangan 100% */
  max-height: 256px;         /* atur sesuai selera, mis. 380–460px */
  aspect-ratio: 9 / 16;      /* bentuk layar HP, opsional tapi rapi */
}

.hero-slide {
  display: none;
  height: 100%;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide-inner {
  position: relative;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== WA & BACK TO TOP ===== */
.wa-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-fab img {
  display: block;
  width: 30px;
  height: 30px;
}
.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

/* Back to Top: Kanan bawah, awalnya disembunyikan */
.backtotop-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.backtotop-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.backtotop-fab.is-visible:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

/* ===== FOOTER ===== */
.site-footer {}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  text-align: center;
}

/* kapsul kontras untuk logo brand */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand--tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.brand--tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  background: #fff;
}
.brand--tile img {
  display: block;
  width: auto;
  height: 60px;
  image-rendering: -webkit-optimize-contrast;
  mix-blend-mode: normal;
}
.brand--tile.brand--glass {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
}

.brand img {
  height: 75px;
}

.sep {
  width: 50%;
  margin: 16px auto;
  border: 0;
  border-top: 2px solid rgba(0, 0, 0, .2);
  background: #fff;
}
.sep--short {
  width: 25%;
}

.social h4 {
  margin: 6px 0 10px;
}
.social .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.social .links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .7);
  color: #000;
  text-decoration: none;
}
.social .links a:hover {
  background: #fff;
}

.legal .menu {
  margin: 10px 0;
}
.legal .menu a {
  text-decoration: none;
}
.legal .menu .donate {
  padding: 5px 10px;
  border-radius: 50px;
  background: #df750f;
  color: #fff;
}

.legal .meta {
  margin: 8px 0 0;
  line-height: 1.6;
}
.legal .meta a {
  text-decoration: none;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 900px) {
  .badge-btn {
    height: 36px;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -48px;
  }
  .avatar {
    width: 86px;
    height: 86px;
  }
  .titles h1 {
    font-size: 22px;
  }
  .appv .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .related-section {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .brand--tile {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .brand--tile img {
    height: 50px;
  }
}
