.wiki-hdr {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 19, 36, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e293b;
}

.wiki-nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.wiki-nav-pill:hover { border-color: #10b981; color: #ffffff; }

.wiki-apk-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022c22;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.wiki-apk-btn:hover { filter: brightness(1.08); }

.wiki-hero {
  background: radial-gradient(ellipse 75% 65% at 50% 0%, rgba(16, 185, 129, 0.18), transparent 70%), #08101f;
  border-bottom: 1px solid #1e293b;
}

.wiki-search-box {
  width: 100%;
  background: #020617;
  color: #ffffff;
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  border-radius: 12px;
  padding: 12px 92px 12px 16px;
  font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.wiki-search-box:focus { outline: none; border-color: #fde047; }

.wiki-search-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
}

.wiki-sidebar {
  width: 280px;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .wiki-sidebar {
    display: none;
    width: 100%;
  }
  .wiki-sidebar.mobile-open {
    display: block;
  }
}

.wiki-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.wiki-cat-btn:hover { background: #0f172a; color: #ffffff; }
.wiki-cat-btn.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  font-weight: 800;
}
.wiki-cat-cnt {
  padding: 1px 7px;
  border-radius: 999px;
  background: #1e293b;
  color: #fde047;
  font-size: 10.5px;
  font-weight: 800;
}

.wiki-qa-card {
  background: #0b1324;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.16s ease;
}
.wiki-qa-card.open { border-color: rgba(52, 211, 153, 0.5); }

.wiki-qa-q {
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.wiki-qa-q:hover { background: rgba(30, 41, 59, 0.5); }

.wiki-qa-a {
  display: none;
  padding: 0 16px 15px 16px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.65;
  text-align: justify;
}
.wiki-qa-card.open .wiki-qa-a { display: block; padding-top: 12px; }

.wiki-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 10.5px;
  font-weight: 700;
  margin-right: 6px;
}

.wiki-icon-btn {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}
