/* VERSI: navbar-kapsul-v4 */
/* >>>>>>>> 1. TOMBOL UTAMA <<<<<<<< */
.btn-primary {
  background-color: var(--amber);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s;
}
.btn-primary:active { transform: scale(0.95); }

/* >>>>>>>> 2. BOTTOM NAVBAR (RATA BAWAH + LEKUK PRESISI) <<<<<<<< */
.bottom-nav-container { position: fixed; left: 0; right: 0; bottom: 0; height: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 100; }
.bottom-nav { display: flex; height: 100%; filter: drop-shadow(0 -6px 18px rgba(0, 0, 0, 0.18)) drop-shadow(0 -1px 3px rgba(0, 0, 0, 0.12)); }
.nav-side { flex: 1; height: 100%; padding-top: 16px; background: #ffffff; display: flex; justify-content: space-around; align-items: flex-start; }
.nav-side-left { border-radius: 24px 0 0 0; margin-right: -0.5px; }
.nav-side-right { border-radius: 0 24px 0 0; margin-left: -0.5px; }
.nav-curve { width: 104px; flex-shrink: 0; display: flex; flex-direction: column; }
.nav-curve svg { display: block; flex-shrink: 0; }
.nav-curve-fill { flex: 1; background: #ffffff; }
.nav-item { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: color 0.2s, transform 0.1s; }
.nav-item::before { content: ''; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: transparent; transition: background 0.2s; }
.nav-item i { position: relative; font-size: 22px; }
.nav-item:active { transform: scale(0.95); color: #f08a00; }
.nav-item:active::before { background: #ffe6c4; }
.nav-item.active { color: #f08a00; }
.nav-item.active::before { background: #ffe6c4; }
.fab { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(145deg, #ffb83d, #ff9f00); color: white; display: flex; justify-content: center; align-items: center; font-size: 26px; filter: drop-shadow(0 -6px 18px rgba(0, 0, 0, 0.18)) drop-shadow(0 -1px 3px rgba(0, 0, 0, 0.12)); cursor: pointer; }
.fab:active { transform: translateX(-50%) scale(0.95); }

/* >>>>>>>> 3. BADGE <<<<<<<< */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: 0.6px; text-transform: uppercase; }
.badge i { font-size: 12px; }
/* Certified: navy pekat + bingkai emas metalik + kilau dalam */
.badge-certified { color: #f6e4a6; border: 1px solid transparent; background: linear-gradient(135deg, #26377e 0%, #0d1433 100%) padding-box, linear-gradient(135deg, #fbeaa8 0%, #c9a227 45%, #fff1b8 62%, #a67c00 100%) border-box; box-shadow: 0 2px 6px rgba(13, 20, 51, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.badge-certified i { color: #f0cf6a; }
/* Verified (teal) + Premium (ungu): gradasi halus + kilau dalam */
.badge-verified { background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%); color: #ffffff; box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.badge-premium { background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%); color: #ffffff; box-shadow: 0 2px 6px rgba(109, 40, 217, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

/* >>>>>>>> 4. IKON CHAT PULSE <<<<<<<< */
.icon-chat { position: relative; }
.chat-badge {
  position: absolute; top: 3px; left: calc(50% + 3px); z-index: 2;
  background: #ef4444; color: white;
  border: 2px solid white;
  border-radius: 10px; min-width: 18px; height: 18px;
  font-size: 9px; font-weight: 700; line-height: 1;
  display: flex; justify-content: center; align-items: center;
  padding: 0 4px;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.icon-chat.unread .chat-badge { animation: pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .icon-chat.unread .chat-badge { animation: none; } }

/* >>>>>>>> 5. TOAST NOTIFIKASI <<<<<<<< */
.toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1f2937;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* >>>>>>>> 6. TANDA TANYA PENJELASAN & BOTTOM SHEET <<<<<<<< */
.info-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 -6px 0 6px; border-radius: 50%; background: rgba(0, 0, 0, 0.06); color: var(--text-muted); }
.info-btn i { font-size: 14px; }
.chip.active .info-btn { background: rgba(255, 255, 255, 0.3); color: #ffffff; }
.sheet-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(31, 41, 55, 0.35); display: flex; align-items: flex-end; }
.sheet { width: 100%; background: #ffffff; border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px)); animation: sheetUp 0.25s ease; max-height: 50dvh; overflow-y: auto; }
.sheet h3 { font-size: 18px; font-weight: 700; color: var(--text-main); }
.sheet p { margin: 8px 0 18px; font-size: 14px; line-height: 1.55; color: var(--text-muted); word-wrap: break-word; }
.sheet-btn { width: 100%; min-height: 48px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }


/* >>>>>>>> 7. TANDA TANYA DI DALAM CHIP <<<<<<<< */
.chip.has-info { padding-right: 10px; }
.chip-q { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 7px; border-radius: 50%; background: rgba(0, 0, 0, 0.07); color: var(--text-muted); flex-shrink: 0; }
.chip-q i { font-size: 12px; }
.chip-q::before { content: ''; position: absolute; inset: -8px; }
.chip.active .chip-q { background: rgba(255, 255, 255, 0.3); color: #ffffff; }

/* >>>>>>>> 8. KARTU BISA DIKETUK <<<<<<<< */
.provider-card { cursor: pointer; }
.card-badges { gap: 4px; }

/* >>>>>>>> 9. POPUP PROFIL SINGKAT <<<<<<<< */
.profile-sheet { position: relative; max-height: 90dvh; overflow-y: auto; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%; background: #f3f4f6; color: var(--text-muted); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.pf-head { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.pf-avatar { width: 64px; height: 64px; font-size: 23px; border-radius: 20px; }
.pf-title { min-width: 0; }
.pf-title h3 { overflow-wrap: anywhere; }
.pf-badges { margin-top: 12px; }
.profile-sheet .pf-bio { margin: 12px 0 14px; }
.pf-rows { border-top: 1px solid #f3f4f6; }
.pf-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; }
.pf-key { color: var(--text-muted); font-weight: 500; }
.pf-val { color: var(--text-main); font-weight: 700; text-align: right; }
.pf-note { display: flex; gap: 8px; margin: 14px 0 16px !important; padding: 10px 12px; background: #fff7ea; border-radius: 12px; font-size: 12.5px !important; line-height: 1.5; color: #92580a !important; }
.pf-note i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }


/* >>>>>>>> 10. CENTANG DI FOTO <<<<<<<< */
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-check { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ffffff; display: flex; align-items: center; justify-content: center; font-size: 12px; text-shadow: 0 0 1px currentColor; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.avatar-wrap.big .avatar-check { width: 26px; height: 26px; font-size: 14px; }
.check-certified { background: linear-gradient(135deg, #26377e, #0d1433); color: #f0cf6a; }
.check-verified { background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #ffffff; }


/* >>>>>>>> 11. PERBAIKAN CENTANG FOTO + HARGA PIL <<<<<<<< */
.avatar-wrap { align-self: flex-start; }
.card-foot .price, .pf-val .price { display: inline-block; padding: 5px 11px; border-radius: 10px; background: linear-gradient(145deg, #ffb83d, #ff9f00); color: #ffffff; font-size: 13.5px; box-shadow: 0 3px 8px rgba(255, 159, 0, 0.25); }
.card-foot .price .price-unit, .pf-val .price .price-unit { color: rgba(255, 255, 255, 0.9); }
.card-foot .price.free, .pf-val .price.free { background: linear-gradient(145deg, #4ade80, #16a34a); color: #ffffff; box-shadow: 0 3px 8px rgba(34, 197, 94, 0.25); }

/* >>>>>>>> 12. HEADER: LONCENG, PENCARIAN + FILTER, CHIP IKON <<<<<<<< */
.home-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bell-btn { position: relative; width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: 50%; background: #ffffff; color: #f08a00; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(120, 80, 20, 0.12); }
.bell-btn i { font-size: 22px; }
.bell-btn:active { transform: scale(0.94); }
.bell-dot { position: absolute; top: 9px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid #ffffff; box-sizing: content-box; }
.search-box .filter-btn { width: 34px; height: 34px; flex-shrink: 0; border: none; border-radius: 10px; background: linear-gradient(145deg, #ffb83d, #ff9f00); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(255, 159, 0, 0.3); }
.search-box .filter-btn i { font-size: 18px; color: #ffffff; }
.chip > i:first-child { font-size: 16px; margin-right: 6px; }

/* >>>>>>>> 13. BANNER GESER + TITIK <<<<<<<< */
.banner-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; margin: 0 -16px; padding: 4px 16px 0; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-height: 132px; padding: 16px; border-radius: 22px; color: #ffffff; overflow: hidden; box-shadow: 0 6px 16px rgba(255, 159, 0, 0.28); background: linear-gradient(135deg, #ffb83d, #ff9f00); }
.banner.b-1 { background: linear-gradient(135deg, #ff9f00, #f06b00); }
.banner.b-2 { background: linear-gradient(135deg, #ffc15a, #ff9f00); }
.banner::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.banner-tag { display: inline-block; padding: 3px 10px; border-radius: 10px; background: #ffffff; color: #f08a00; font-size: 11px; font-weight: 800; }
.banner h3 { margin-top: 8px; font-size: 20px; font-weight: 800; }
.banner p { margin: 2px 0 10px; max-width: 70%; font-size: 12.5px; font-weight: 500; line-height: 1.4; opacity: 0.95; }
.banner-btn { position: relative; z-index: 1; border: none; border-radius: 12px; padding: 8px 14px; background: #ffffff; color: #f08a00; font-family: inherit; font-size: 12.5px; font-weight: 700; }
.banner-dots { display: flex; justify-content: center; gap: 5px; margin: 10px 0 6px; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: #e8d3b6; transition: width 0.2s, background 0.2s; }
.dot.on { width: 18px; background: #ff9f00; }

/* >>>>>>>> 14. JUDUL BAGIAN + SLIDER FOTO <<<<<<<< */
.section-head { margin: 8px 0 10px; }
.section-head h2 { font-size: 16px; font-weight: 800; color: var(--text-main); }
.mini-row { display: flex; gap: 12px; overflow-x: auto; touch-action: pan-x pan-y; margin: 0 -16px 14px; padding: 2px 16px 10px; }
.mini-card { flex: 0 0 146px; padding: 8px 8px 10px; background: #ffffff; border-radius: 20px; box-shadow: 0 2px 8px rgba(120, 80, 20, 0.1); }
.mini-photo { position: relative; height: 132px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.mini-initial { font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, 0.95); letter-spacing: 1px; }
.mini-rating { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 10px; background: rgba(31, 41, 55, 0.55); color: #ffffff; font-size: 11.5px; font-weight: 700; }
.mini-rating i { color: #ffb83d; font-size: 13px; }
.mini-rating small { font-size: 10px; font-weight: 500; opacity: 0.85; }
.mini-share { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #f08a00; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.mini-name { margin-top: 8px; padding: 0 2px; font-size: 13.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { padding: 0 2px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* >>>>>>>> 15. TITIK ONLINE (PULSE) <<<<<<<< */
.online-dot { position: absolute; top: -3px; left: -3px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #ffffff; box-sizing: content-box; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.online-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: #22c55e; animation: onlinePulse 1.8s ease-out infinite; }
@keyframes onlinePulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.6); opacity: 0; } }

/* >>>>>>>> 16. LABEL LOKASI + SHEET LOKASI (SETENGAH LAYAR) <<<<<<<< */
.section-head { display: flex; align-items: center; gap: 8px; }
.loc-sep { color: #d1d5db; font-size: 13px; }
.loc-btn { display: inline-flex; align-items: center; gap: 3px; min-height: 32px; padding: 0 2px; border: none; background: none; font-family: inherit; font-size: 12px; font-weight: 600; color: #9ca3af; }
.loc-btn i { font-size: 13px; }
.loc-btn.set { color: #111827; }
.loc-sheet { padding: 0 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
.loc-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid #e5e7eb; }
.loc-head h3 { font-size: 18px; font-weight: 700; }
.loc-close { width: 36px; height: 36px; border: none; background: none; color: var(--text-muted); font-size: 24px; display: flex; align-items: center; justify-content: center; }
.loc-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 20px; border: none; background: #ffffff; text-align: left; font-family: inherit; color: var(--text-main); }
.loc-row:active { background: #f9fafb; }
.loc-row > i:first-child { font-size: 26px; color: #6b7280; flex-shrink: 0; }
.loc-row > i:last-child { font-size: 18px; color: #9ca3af; flex-shrink: 0; }
.loc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loc-txt b { font-size: 15px; font-weight: 700; }
.loc-txt small { font-size: 12.5px; color: var(--text-muted); }
.loc-sub { padding: 12px 20px; background: #f5f7fa; font-size: 15px; font-weight: 700; }
.sheet-half { height: 50dvh; display: flex; flex-direction: column; overflow: hidden; }
.city-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px 4px; height: 44px; padding: 0 12px; background: #f3f4f6; border-radius: 12px; }
.city-search i { font-size: 20px; color: var(--text-muted); }
.city-search input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; color: var(--text-main); }
.city-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.city-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 20px; border: none; background: #ffffff; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-main); text-align: left; }
.city-row i { font-size: 20px; color: #9ca3af; }
.city-row.on, .city-row.on i { color: #f08a00; }
.city-row:active { background: #f9fafb; }
.city-empty { text-align: center; margin: 24px 16px; }


/* >>>>>>>> 17. POPUP PROFIL: PENUH, BIO 3 BARIS, TOMBOL PROFIL + ATUR JADWAL <<<<<<<< */
.profile-sheet .pf-bio { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-btns { display: flex; gap: 10px; }
.pf-btns button { min-height: 48px; font-size: 15px; }
.pf-btns .btn-primary { flex: 1; }
.btn-secondary { flex: 0 0 36%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #ffffff; color: #f08a00; border: 1.5px solid #ff9f00; border-radius: 12px; font-family: inherit; font-weight: 600; cursor: pointer; transition: transform 0.1s; }
.btn-secondary i { font-size: 18px; }
.btn-secondary:active { transform: scale(0.95); }

.banner-logo { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.banner-logo h3 { margin: 0; font-size: 24px; }
.banner-row + .section-head, .banner-row + .sticky-bar { margin-top: 10px; }
