/* ============================================================
   soodu.id — menu akun tampilan HP (panel geser kanan)
   Menggantikan dropdown Materialize di .navbar-mobile
   ============================================================ */

/* ---------- tombol di navbar ---------- */
.navbar-mobile .nav-wrapper { align-items: center; }
.mm-trigger {
   position: relative; flex: none;
   display: flex; align-items: center; justify-content: center;
   width: 48px; height: 48px; margin: 0; padding: 0;
   border: 0; border-radius: 50%; background: transparent; cursor: pointer;
   -webkit-tap-highlight-color: rgba(39, 180, 65, .15);
   touch-action: manipulation; /* tanpa jeda 300 ms & zoom ketuk ganda */
}
.mm-trigger img {
   display: block; width: 40px; height: 40px; object-fit: cover;
   border: 2px solid #2bb440; border-radius: 50%; box-sizing: border-box;
   pointer-events: none;
}
nav .mm-trigger .mm-trigger-icon,
.mm-trigger .mm-trigger-icon {
   position: absolute; right: 0; bottom: 2px;
   width: 18px !important; height: 18px !important; line-height: 18px !important; font-size: 14px !important;
   border-radius: 50%; background: #2bb440; color: #fff; text-align: center;
   box-shadow: 0 0 0 2px #fff; pointer-events: none;
}
.mm-trigger:focus-visible { outline: 2px solid #2bb440; outline-offset: 2px; }

/* ---------- panel ---------- */
.mm-root { position: fixed; inset: 0; z-index: 10000; }
.mm-root[hidden] { display: none; }
.mm-backdrop {
   position: absolute; inset: 0; background: rgba(0, 0, 0, .45);
   opacity: 0; transition: opacity .2s ease;
   cursor: pointer; touch-action: none;
}
.mm-panel {
   position: absolute; top: 0; right: 0; bottom: 0;
   width: min(320px, 86vw); background: #fff;
   display: flex; flex-direction: column;
   transform: translateX(100%); transition: transform .22s ease;
   box-shadow: -4px 0 18px rgba(0, 0, 0, .18);
   padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
   font-family: 'Quicksand', sans-serif; outline: none;
}
.mm-open .mm-backdrop { opacity: 1; }
.mm-open .mm-panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
   .mm-backdrop, .mm-panel { transition: none; }
}

.mm-head {
   display: flex; align-items: center; gap: 12px;
   padding: 14px 8px 14px 16px; border-bottom: 1px solid #eee; flex: none;
}
.mm-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #2bb440; flex: none; }
.mm-logo { height: 30px; width: auto; }
.mm-who { flex: 1; min-width: 0; line-height: 1.3; }
.mm-who b { display: block; color: #222; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-who a { color: #1d8f33; font-size: .85rem; }
.mm-close {
   margin-left: auto; flex: none; width: 44px; height: 44px;
   display: flex; align-items: center; justify-content: center;
   border: 0; background: transparent; border-radius: 50%; color: #555; cursor: pointer;
   touch-action: manipulation;
}
.mm-close:active { background: #f0f0f0; }

.mm-body {
   flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
   overscroll-behavior: contain; padding: 6px 0 16px;
}
.mm-group {
   padding: 16px 20px 6px; font-size: .72rem; font-weight: 700;
   letter-spacing: .06em; text-transform: uppercase; color: #9aa0a6;
}
.mm-item {
   display: flex; align-items: center; gap: 14px;
   min-height: 46px; padding: 0 20px; color: #333; font-size: .98rem;
   touch-action: manipulation; -webkit-tap-highlight-color: rgba(39, 180, 65, .12);
}
.mm-item i { font-size: 22px; color: #6b7280; width: 22px; }
.mm-item:active { background: #f3f8f4; }
.mm-item.active { color: #1d8f33; font-weight: 700; background: #f1faf3; box-shadow: inset 3px 0 0 #27b441; }
.mm-item.active i { color: #27b441; }
.mm-badge {
   display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px;
   border-radius: 10px; background: #27b441; color: #fff; font-size: .75rem; line-height: 20px; text-align: center;
}
.mm-premium {
   display: flex; align-items: center; gap: 10px; margin: 10px 16px 2px; padding: 10px 14px;
   border-radius: 10px; background: #fff3f0; color: #d93025; font-weight: 700; font-size: .95rem;
}
.mm-logout { margin-top: 10px; border-top: 1px solid #eee; color: #e53935; }
.mm-logout i { color: #e53935; }
.mm-auth { display: flex; gap: 10px; padding: 14px 16px 6px; }
.mm-btn {
   flex: 1; display: flex; align-items: center; justify-content: center; height: 44px;
   border-radius: 22px; border: 1px solid #27b441; color: #1d8f33; font-weight: 700;
}
.mm-btn-primary { background: #27b441; color: #fff; }

/* kunci gulir halaman saat menu terbuka (aman untuk iOS Safari) */
html.mm-lock, html.mm-lock body { overflow: hidden; }
html.mm-lock body { position: fixed; left: 0; right: 0; width: 100%; }

/* panel hanya untuk tampilan HP/tablet */
@media (min-width: 993px) {
   .mm-root { display: none !important; }
}
