/* Profile avatar button */
  .profile-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000000;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    position: relative;
  }

  .profile-avatar-btn:hover {
    transform: scale(1.04);
    border-color: rgba(255,255,255,0.4);
  }

  /* Online indicator dot */
  .profile-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--color-core-3);
  }

  /* Profile dropdown panel */
  .profile-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 999;
    overflow: hidden;
    animation: panelSlide 0.2s ease;
  }

  /* Arrow pointer at top */
  .profile-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    transform: rotate(45deg);
  }

  @keyframes panelSlide {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
  }

  .profile-panel.open { display: block; }

  .profile-panel-header {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .profile-panel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
  }

  .profile-panel-name {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
  }

  .profile-panel-role {
    font-family: sans-serif;
    font-size: 13px;
    color: #6b6b6b;
    margin-top: 2px;
  }

  .profile-panel-body {
    padding: 0 20px;
  }

  /* Divider */
  .profile-panel-header + div {
    border-top: 1px solid #e5e5e5;
  }

  .profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
  }

  .profile-menu-item:hover { background: #f5f5f5; }

  .profile-menu-item.danger { color: #333333; }
  .profile-menu-item.danger:hover { background: #f5f5f5; }

  .profile-menu-icon {
    display: none;
  }

  .profile-panel-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e5e5;
    font-family: sans-serif;
    font-size: 11px;
    color: #999999;
    text-align: center;
  }
