/* ── Navbar v2 (2026-11-07): ikon SVG seragam, state aktif, tab bar bawah di HP ── */
.nav-inner { flex-wrap: nowrap; gap: 14px; padding: 10px 18px; }
.nav .logo { font-size: 19px; flex: 0 0 auto; }
.nav .search { max-width: 520px; margin: 0 auto; flex: 1 1 auto; }
.nav .search button { display: inline-flex; align-items: center; gap: 6px; }
.srch-ico { width: 16px; height: 16px; }

.nav-menu {
  display: flex; align-items: center; gap: 2px; flex: 0 0 auto;
  padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}
.nm-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: color .15s ease, background .15s ease;
}
.nm-item svg, .nu-admin svg, .tb-item svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.nm-item:hover { color: var(--ink); background: rgba(255,255,255,0.06); text-decoration: none; }
.nm-item.on { color: #ffb380; background: rgba(255,122,61,0.14); box-shadow: inset 0 0 0 1px rgba(255,122,61,0.28); }
.nm-item.on svg { stroke: #ff8a4c; }

.nav-user { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nu-admin {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); transition: color .15s, border-color .15s;
}
.nu-admin:hover, .nu-admin.on { color: #ff8a4c; border-color: rgba(255,122,61,0.45); text-decoration: none; }
.nu-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-grad, #ff7a3d); color: #1a0d05;
  font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 0 0 2px rgba(11,13,18,1), 0 0 0 3px rgba(255,122,61,0.35);
  transition: box-shadow .15s ease;
}
.nu-avatar:hover, .nu-avatar.on { text-decoration: none; box-shadow: 0 0 0 2px rgba(11,13,18,1), 0 0 0 3px #ff8a4c; }
.nu-login {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: #ffb380; border: 1px solid rgba(255,122,61,0.45); text-decoration: none;
}
.nu-login:hover { background: rgba(255,122,61,0.12); text-decoration: none; }

/* drawer lama tak dipakai lagi */
.nav-burger, .drawer, .drawer-overlay { display: none !important; }

.tabbar { display: none; }

/* Tablet: label menu disembunyikan, ikon saja */
@media (max-width: 980px) {
  .nm-item span { display: none; }
  .nm-item { padding: 8px 10px; }
}

/* HP: menu atas pindah ke tab bar bawah */
@media (max-width: 720px) {
  .nav-inner { gap: 10px; padding: 8px 12px; }
  .nav .logo { font-size: 17px; }
  .nav .search { margin: 0; }
  .nav .search input { padding: 9px 14px; font-size: 14px; }
  .nav .search button { padding: 0; width: 38px; height: 38px; flex: 0 0 38px; justify-content: center; }
  .srch-txt { display: none; }
  .nav-menu, .nu-avatar, .nu-login { display: none; }
  .nu-admin { width: 34px; height: 34px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(12,14,20,0.9);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .tb-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0 4px; color: #7d8696; text-decoration: none;
    font-size: 10.5px; font-weight: 600; letter-spacing: .1px;
    -webkit-tap-highlight-color: transparent;
  }
  .tb-item svg { width: 22px; height: 22px; }
  .tb-item:hover { text-decoration: none; color: var(--ink); }
  .tb-item.on { color: #ffb380; }
  .tb-item.on svg { stroke: #ff8a4c; fill: rgba(255,122,61,0.16); }
  .tb-item.on::before {
    content: ""; position: absolute; top: -6px; left: 50%;
    width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px;
    background: var(--accent-grad, #ff7a3d);
  }
  .tb-item:active svg { transform: scale(.92); }
  body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .nm-item, .nu-admin, .nu-avatar, .tb-item svg { transition: none; }
}

/* ── v2b: badge, dropdown akun, sembunyi saat scroll, pencarian HP ── */
.nav { transition: transform .22s ease; }
.nav.nav-hide { transform: translateY(-100%); }
.nm-item { position: relative; }
.nbadge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent-grad, #ff7a3d); color: #1a0d05;
  font-size: 10.5px; font-weight: 800; line-height: 1; font-style: normal;
}
.nm-item .nbadge { margin-left: 2px; }
@media (max-width: 980px) { .nm-item .nbadge { position: absolute; top: 1px; right: 0; margin: 0; } }
.nu-wrap { position: relative; }
.nu-avatar { border: 0; cursor: pointer; position: relative; padding: 0; font-family: inherit; }
.ndot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #ff5e2a; box-shadow: 0 0 0 2px #0b0d12; }
.nu-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80;
  width: 250px; padding: 6px; border-radius: 16px;
  background: #151821; border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
}
.nu-menu[hidden], .nu-menu > [hidden] { display: none; }
.nu-menu > a, .nu-menu > button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none;
}
.nu-menu > a:hover, .nu-menu > button:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.nu-head { padding: 8px 12px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 4px; }
.nu-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nu-head span { font-size: 11px; color: #ffb380; border: 1px solid rgba(255,122,61,0.4); border-radius: 999px; padding: 1px 7px; }
.nu-menu > a.nu-cont { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; margin-bottom: 4px; background: rgba(255,122,61,0.1); }
.nu-cont small { grid-column: 1 / -1; color: #ffb380; font-size: 11px; font-weight: 700; }
.nu-cont b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nu-cont em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.nu-menu > a.nu-out { color: var(--muted); border-top: 1px solid rgba(255,255,255,0.07); border-radius: 0 0 10px 10px; margin-top: 4px; }
.nu-menu .nbadge { padding: 0 7px; }

.tb-item .nbadge.tb { position: absolute; top: 2px; left: 50%; margin-left: 4px; height: 16px; min-width: 16px; font-size: 9.5px; padding: 0 4px; }

/* Pencarian layar penuh (HP) */
.sov { position: fixed; inset: 0; z-index: 120; background: #0b0d12; display: flex; flex-direction: column; }
.sov[hidden] { display: none; }
.sov-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sov-back { width: 40px; height: 40px; flex: 0 0 40px; border: 0; background: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.sov-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sov-bar input { flex: 1; min-width: 0; height: 42px; border-radius: 999px; padding: 0 16px; font-size: 16px; color: var(--ink); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,122,61,0.45); outline: none; }
.sov-body { flex: 1; overflow-y: auto; padding: 12px 14px 30px; }
.sov-cont { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border-radius: 14px; background: rgba(255,122,61,0.1); border: 1px solid rgba(255,122,61,0.25); margin-bottom: 16px; color: var(--ink); text-decoration: none; }
.sov-cont span { grid-column: 1 / -1; font-size: 11.5px; color: #ffb380; font-weight: 700; }
.sov-cont b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sov-cont em { font-style: normal; color: var(--muted); font-size: 13px; }
.sov-h { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sov-h button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; text-decoration: underline; }
.sov-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sov-chip { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--ink); font-size: 13.5px; text-decoration: none; }
.sov-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--ink); text-decoration: none; }
.sov-item img, .sov-item .ph { width: 44px; height: 62px; flex: 0 0 44px; border-radius: 8px; object-fit: cover; background: #1a1e27; }
.sov-t { display: flex; flex-direction: column; min-width: 0; }
.sov-t b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sov-t small { color: var(--muted); font-size: 12.5px; }
.sov-empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }
body.no-scroll { overflow: hidden; }

/* Tombol pasang aplikasi (halaman akun) */
.kh-install-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: rgba(255,122,61,0.08); border: 1px solid rgba(255,122,61,0.25); margin-bottom: 18px; }
.kh-install-box[hidden] { display: none; }
.kh-install-box p { margin: 0; font-size: 14px; }
.kh-install-btn { padding: 9px 18px; border-radius: 999px; border: 0; background: var(--accent-grad, #ff7a3d); color: #1a0d05; font-weight: 800; cursor: pointer; font-family: inherit; }
.kh-ios-hint { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.bm-newtag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: var(--accent-grad, #ff7a3d); color: #1a0d05; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
