/* PROFILE AVATAR — pojok kanan atas app-bar */
.app-bar-profile { order: 3 !important; flex: none; position: relative; margin-left: auto; }

.ap-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(18,161,80,.35);
  background: linear-gradient(135deg, #12a150, #0b6b8a);
  color: #fff; font: 700 15px/1 var(--font-sans, system-ui, sans-serif);
  cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ap-btn:hover { box-shadow: 0 0 0 3px rgba(18,161,80,.18); }
.ap-btn:active { transform: scale(.95); }
.ap-btn:focus-visible { outline: 2px solid #12a150; outline-offset: 2px; }
.ap-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ap-menu {
  position: fixed; z-index: 2000; min-width: 230px; max-width: calc(100vw - 24px);
  background: var(--card, #fff); color: var(--ink, #1d2b36);
  border: 1px solid var(--line, #dde4ea); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px;
}
.ap-menu[hidden] { display: none; }
.ap-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line, #dde4ea); margin-bottom: 6px; }
.ap-head .ap-btn { width: 40px; height: 40px; font-size: 16px; cursor: default; flex: none; }
.ap-id { display: flex; flex-direction: column; min-width: 0; }
.ap-id strong { font: 600 13.5px var(--font-sans, system-ui, sans-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-id span { font: 400 11.5px var(--font-sans, system-ui, sans-serif); opacity: .65; }
.ap-logout {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: 600 13.5px var(--font-sans, system-ui, sans-serif); color: #d6334a; text-align: left;
}
.ap-logout:hover { background: rgba(214,51,74,.1); }

[data-theme="dark"] .ap-menu { background: #1c1c1e; color: #f5f5f7; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .ap-head { border-bottom-color: rgba(255,255,255,.12); }

@media (max-width: 480px) {
  .ap-btn { width: 34px; height: 34px; font-size: 14px; }
}
